3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $command = 'sleep 30'; $dir = "/"; $pipes = array(); $error = $output = ""; $process = proc_open( $command, array( 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w') ), $pipes, $dir ); if (is_resource($process)) { $status = proc_get_status($process); printf("running: %d exitcode: %d\n", $status['running'], $status['exitcode']); print "killing proc_open'ed process\n"; posix_kill($status['pid'], 9); sleep(1); $status = proc_get_status($process); printf("running: %d exitcode: %d\n", $status['running'], $status['exitcode']); } else { printf("proc_open failed for command %s\n", $command); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0150.00016.88
8.3.60.0100.01018.43
8.3.50.0120.00421.91
8.3.40.0070.00718.96
8.3.30.0050.00819.05
8.3.20.0090.00020.17
8.3.10.0040.00421.94
8.3.00.0040.00420.61
8.2.180.0040.01116.63
8.2.170.0140.00022.96
8.2.160.0070.00719.04
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.23
8.2.110.0090.00019.28
8.2.100.0000.01217.84
8.2.90.0040.00419.23
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0070.00418.07
8.2.40.0040.00419.88
8.2.30.0030.00517.94
8.2.20.0040.00417.71
8.2.10.0040.00417.74
8.2.00.0000.00717.64
8.1.280.0180.00325.92
8.1.270.0030.00622.01
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0050.00519.04
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0060.00317.23
8.1.180.0040.00418.82
8.1.170.0000.00818.58
8.1.160.0020.00522.04
8.1.150.0060.00318.54
8.1.140.0000.00717.33
8.1.130.0030.00517.82
8.1.120.0000.00817.43
8.1.110.0090.00017.27
8.1.100.0030.00317.34
8.1.90.0040.00417.45
8.1.80.0070.00017.38
8.1.70.0000.00717.27
8.1.60.0000.00817.43
8.1.50.0060.00317.55
8.1.40.0040.00417.56
8.1.30.0040.00417.64
8.1.20.0040.00417.58
8.1.10.0080.00017.56
8.1.00.0000.00917.49
8.0.300.0040.00420.02
8.0.290.0050.00316.58
8.0.280.0070.00018.28
8.0.270.0030.00317.16
8.0.260.0000.00616.78
8.0.250.0000.00716.99
8.0.240.0000.00716.93
8.0.230.0080.00016.81
8.0.220.0000.00716.89
8.0.210.0040.00416.90
8.0.200.0000.00816.93
8.0.190.0000.00716.96
8.0.180.0040.00416.81
8.0.170.0000.00816.91
8.0.160.0040.00416.82
8.0.150.0040.00416.84
8.0.140.0000.00716.84
8.0.130.0030.00313.34
8.0.120.0050.00316.79
8.0.110.0000.00816.85
8.0.100.0040.00416.82
8.0.90.0040.00417.01
8.0.80.0070.01116.84
8.0.70.0070.00016.98
8.0.60.0030.00516.77
8.0.50.0030.00516.72
8.0.30.0100.00816.97
8.0.20.0160.00417.40
8.0.10.0040.00417.02
8.0.00.0130.00816.70
7.4.330.0000.00515.13
7.4.320.0030.00316.55
7.4.300.0040.00416.54
7.4.290.0030.00316.46
7.4.280.0030.00316.57
7.4.270.0030.00316.54
7.4.260.0030.00316.56
7.4.250.0070.00016.48
7.4.240.0040.00416.56
7.4.230.0030.00316.64
7.4.220.0150.00016.55
7.4.210.0080.00916.46
7.4.200.0000.00716.35
7.4.190.0030.00316.61
7.4.160.0040.01116.45
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0110.00616.47
7.4.120.0070.01016.56
7.4.110.0040.01216.52
7.4.100.0120.00616.59
7.4.90.0090.00916.54
7.4.80.0040.01219.39
7.4.70.0060.01516.40
7.4.60.0090.00616.52
7.4.50.0030.00616.55
7.4.40.0070.00722.77
7.4.30.0060.01516.14
7.4.00.0100.00715.03
7.3.330.0020.00213.17
7.3.320.0060.00013.11
7.3.310.0000.00716.13
7.3.300.0030.00316.09
7.3.290.0070.01316.24
7.3.280.0090.00616.14
7.3.270.0070.01017.40
7.3.260.0030.01516.42
7.3.250.0130.00816.29
7.3.240.0060.00916.42
7.3.230.0030.01316.39
7.3.210.0130.00616.23
7.3.200.0060.00916.11
7.3.190.0070.01016.19
7.3.180.0090.00716.38
7.3.170.0120.00316.27
7.3.160.0090.00916.30
7.3.120.0040.01214.68
7.3.10.0100.00716.45
7.3.00.0080.00316.51
7.2.330.0070.01316.58
7.2.320.0130.00316.48
7.2.310.0100.01416.61
7.2.300.0140.00916.69
7.2.290.0120.00316.37
7.2.130.0040.01116.89
7.2.120.0080.00616.66
7.2.110.0060.01016.73
7.2.100.0120.00316.70
7.2.90.0030.01216.96
7.2.80.0060.00916.86
7.2.70.0090.00516.73
7.2.60.0090.00716.67
7.2.50.0050.01016.76
7.2.40.0100.00516.66
7.2.30.0040.01016.74
7.2.20.0070.00916.64
7.2.10.0070.00716.73
7.2.00.0080.00617.53
7.1.250.0050.01015.76
7.1.240.0050.01015.52
7.1.230.0090.00515.62
7.1.220.0070.00915.69
7.1.210.0120.00515.79
7.1.200.0080.00415.72
7.1.190.0070.00515.74
7.1.180.0090.00415.61
7.1.170.0060.00915.71
7.1.160.0040.00815.48
7.1.150.0080.00715.82
7.1.140.0030.00815.68
7.1.130.0100.00515.78
7.1.120.0090.00515.69
7.1.110.0090.00715.80
7.1.100.0110.00716.41
7.1.90.0120.00515.56
7.1.80.0070.01015.64
7.1.70.0080.00816.17
7.1.60.0070.01317.13
7.1.50.0070.01016.21
7.1.40.0110.00415.74
7.1.30.0090.00915.83
7.1.20.0020.01315.75
7.1.10.0090.00515.70
7.1.00.0060.03218.06
7.0.330.0050.00715.24
7.0.320.0070.00415.29
7.0.310.0050.00815.37
7.0.300.0100.00215.23
7.0.290.0110.00515.10
7.0.280.0080.00715.29
7.0.270.0090.00615.24
7.0.260.0050.01015.26
7.0.250.0070.00815.21
7.0.240.0100.00715.35
7.0.230.0080.00715.50
7.0.220.0060.00715.29
7.0.210.0120.00515.30
7.0.200.0080.00715.74
7.0.190.0110.00615.29
7.0.180.0050.00815.34
7.0.170.0070.00715.35
7.0.160.0050.00915.39
7.0.150.0100.00315.31
7.0.140.0090.02617.54
7.0.130.0070.00715.38
7.0.120.0080.00715.47
7.0.110.0090.00615.46
7.0.100.0080.00615.37
7.0.90.0070.00915.33
7.0.80.0080.00315.41
7.0.70.0020.01015.46
7.0.60.0080.02216.97
7.0.50.0090.02716.15
7.0.40.0080.01515.78
7.0.30.0120.01915.60
7.0.20.0120.02915.67
7.0.10.0120.03115.57
7.0.00.0070.03515.49
5.6.380.0070.00714.10
5.6.370.0110.00614.04
5.6.360.0050.00914.23
5.6.350.0050.01214.26
5.6.340.0040.00814.15
5.6.330.0130.00314.04
5.6.320.0040.01314.26
5.6.310.0120.00514.45
5.6.300.0060.01114.34
5.6.290.0120.00614.19
5.6.280.0090.03016.56
5.6.270.0110.00814.32
5.6.260.0090.00714.29
5.6.250.0120.00514.17
5.6.240.0110.00414.34
5.6.230.0060.01014.21
5.6.220.0100.00614.12
5.6.210.0080.03416.24
5.6.200.0100.02015.45
5.6.190.0140.01416.25
5.6.180.1400.01516.40
5.6.170.0170.03016.28
5.6.160.0060.02516.41
5.6.150.0060.03715.52
5.6.140.0090.03215.49
5.6.130.0110.03015.44
5.6.120.0130.02516.40
5.6.110.0080.03516.38
5.6.100.0110.02316.46
5.6.90.0100.03316.28
5.6.80.0090.03116.09
5.6.70.0140.03116.17
5.6.60.0080.00814.20
5.6.50.0070.00914.10
5.6.40.0080.00514.01
5.6.30.0080.01113.87
5.6.20.0080.00914.12
5.6.10.0110.00614.21
5.6.00.0070.00914.24
5.5.380.0020.01011.08
5.5.370.0050.00711.11
5.5.360.0050.00711.17
5.5.350.0080.02714.30
5.5.340.0060.03213.42
5.5.330.0040.02014.04
5.5.320.0140.03014.21
5.5.310.0100.03314.03
5.5.300.0110.02713.32
5.5.290.0090.02613.39
5.5.280.0090.02014.36
5.5.270.0080.01914.39
5.5.260.0110.01914.27
5.5.250.0030.03014.23
5.5.240.0020.02814.03
5.5.230.0040.00411.10
5.5.220.0050.00611.12
5.5.210.0050.00310.98
5.5.200.0040.00611.12
5.5.190.0030.00510.95
5.5.180.0040.00511.13
5.5.170.0050.00310.98
5.5.160.0040.00610.97
5.5.150.0020.00711.00
5.5.140.0060.00311.04
5.5.130.0030.00511.03
5.5.120.0030.00511.12
5.5.110.0070.00410.97
5.5.100.0010.00910.94
5.5.90.0070.00110.96
5.5.80.0040.00610.95
5.5.70.0060.00310.99
5.5.60.0060.00511.11
5.5.50.0020.00911.14
5.5.40.0040.00710.99
5.5.30.0000.01111.04
5.5.20.0060.00310.98
5.5.10.0040.00611.11
5.5.00.0060.00211.04
5.4.450.0070.02213.88
5.4.440.0100.01813.80
5.4.430.0070.02313.82
5.4.420.0090.01913.88
5.4.410.0090.02113.88
5.4.400.0540.00013.58
5.4.390.0560.00413.67
5.4.380.0160.02713.59
5.4.370.0090.01913.49
5.4.360.0150.01913.49
5.4.350.0100.02213.51
5.4.340.0150.02113.57
5.4.330.0040.00710.91
5.4.320.0030.01911.40
5.4.310.0070.01511.58
5.4.300.0070.01211.63
5.4.290.0050.01911.51
5.4.280.0080.01611.38
5.4.270.0030.01811.56
5.4.260.0080.01913.56
5.4.250.0070.02113.76
5.4.240.0080.02913.62
5.4.230.0070.02013.52
5.4.220.0100.01813.59
5.4.210.0070.02913.70
5.4.200.0060.02113.61
5.4.190.0090.01813.64
5.4.180.0080.01713.65
5.4.170.0060.02013.59
5.4.160.0050.02213.61
5.4.150.0040.02313.65
5.4.140.0020.02312.68
5.4.130.0070.01912.91
5.4.120.0070.01912.76
5.4.110.0060.01912.76
5.4.100.0090.01712.76
5.4.90.0060.02012.81
5.4.80.0070.01712.71
5.4.70.0100.02412.74
5.4.60.0080.02012.82
5.4.50.0070.01612.78
5.4.40.0080.01712.75
5.4.30.0040.02312.78
5.4.20.0050.02312.91
5.4.10.0040.02812.83
5.4.00.0010.02512.62
5.3.290.0050.01811.46
5.3.280.0110.02212.07
5.3.270.0070.02812.05
5.3.260.0070.02012.11
5.3.250.0060.02112.09
5.3.240.0070.02311.95
5.3.230.0050.02012.03
5.3.220.0060.01811.97
5.3.210.0050.02212.00
5.3.200.0060.01811.88
5.3.190.0060.02011.98
5.3.180.0100.01512.04
5.3.170.0020.02611.99
5.3.160.0070.02112.01
5.3.150.0040.02811.95
5.3.140.0060.02111.93
5.3.130.0050.02212.05
5.3.120.0050.02012.04
5.3.110.0060.02512.04
5.3.100.0080.01511.73
5.3.90.0090.01511.86
5.3.80.0070.01711.76
5.3.70.0080.01811.71
5.3.60.0070.01811.89
5.3.50.0050.01911.72
5.3.40.0050.01911.72
5.3.30.0050.01911.80
5.3.20.0070.01811.63
5.3.10.0050.02411.59
5.3.00.0050.01911.61
5.2.170.0010.01910.76
5.2.160.0050.01510.70
5.2.150.0040.01610.72
5.2.140.0020.02510.78
5.2.130.0040.01510.68
5.2.120.0080.01310.77
5.2.110.0040.01610.74
5.2.100.0080.01410.73
5.2.90.0050.01510.71
5.2.80.0080.02110.68
5.2.70.0060.01610.71
5.2.60.0020.01910.77
5.2.50.0050.01410.67
5.2.40.0040.01610.71
5.2.30.0080.02010.73
5.2.20.0070.01810.69
5.2.10.0070.01210.68
5.2.00.0060.01510.63
5.1.60.0070.01110.43
5.1.50.0020.01510.38
5.1.40.0060.01110.42
5.1.30.0030.01410.48
5.1.20.0040.01510.51
5.1.10.0030.01410.38
5.1.00.0070.01010.40
5.0.50.0040.0119.86
5.0.40.0060.0099.83
5.0.30.0030.0169.80
5.0.20.0040.0109.78
5.0.10.0030.0119.75
5.0.00.0050.0139.77
4.4.90.0020.0129.01
4.4.80.0040.0099.02
4.4.70.0050.0098.97
4.4.60.0030.0108.99
4.4.50.0040.0108.99
4.4.40.0050.0118.99
4.4.30.0060.0108.98
4.4.20.0010.0118.98
4.4.10.0020.0119.01
4.4.00.0030.0129.02
4.3.110.0000.0118.97
4.3.100.0030.0098.98
4.3.90.0030.0109.00
4.3.80.0040.0128.95
4.3.70.0050.0108.95
4.3.60.0020.0108.95
4.3.50.0020.0098.95
4.3.40.0030.0128.94
4.3.30.0010.0108.73
4.3.20.0010.0138.73
4.3.10.0040.0078.73
4.3.00.0030.0108.53

preferences:
67.52 ms | 401 KiB | 5 Q