3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 50; $code = ' $ret = ""; for ($j=0; $j<100; $j++) { $ret.= md5($i.$j.$ret); } return $ret;'; $fName = create_function('$i', $code); $start = microtime(true); for($i = 0; $i < $count; $i++){ eval($code); } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); for($i = 0; $i < $count; $i++){ $fName($i); } printf("#2, done in %f\n", microtime(true) - $start); ?>

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)
7.4.10.0070.04015.00
7.4.00.0100.04514.90
7.3.130.0060.04914.88
7.3.120.0100.03615.05
7.3.110.0030.04415.09
7.3.100.0060.04115.09
7.3.90.0030.04214.97
7.3.80.0030.03714.79
7.3.70.0070.03315.03
7.3.60.0100.03315.06
7.3.50.0030.04114.71
7.3.40.0070.04014.77
7.3.30.0070.03914.99
7.3.20.0030.04016.39
7.3.10.0090.04016.59
7.3.00.0090.04116.69
7.2.260.0140.04115.02
7.2.250.0120.03415.00
7.2.240.0040.03615.07
7.2.230.0070.04015.12
7.2.220.0030.04015.31
7.2.210.0030.04115.25
7.2.200.0070.03915.32
7.2.190.0070.03915.10
7.2.180.0000.04215.07
7.2.170.0030.04115.17
7.2.160.0030.04514.97
7.2.150.0070.03616.74
7.2.140.0030.04116.86
7.2.130.0090.04216.72
7.2.120.0100.04116.67
7.2.110.0050.04216.74
7.2.100.0060.04116.68
7.2.90.0080.03716.90
7.2.80.0080.04316.72
7.2.70.0050.04216.68
7.2.60.0080.04016.79
7.2.50.0080.04216.57
7.2.40.0100.04016.71
7.2.30.0080.03916.80
7.2.20.0100.04216.78
7.2.10.0070.04116.78
7.2.00.0080.03717.64
7.1.330.0100.03715.95
7.1.320.0000.04615.92
7.1.310.0070.04215.67
7.1.300.0030.04415.88
7.1.290.0040.03515.93
7.1.280.0070.04416.00
7.1.270.0060.03515.82
7.1.260.0030.04115.91
7.1.250.0060.04115.58
7.1.240.0070.03915.77
7.1.230.0030.04415.80
7.1.220.0100.03615.81
7.1.210.0030.03815.69
7.1.200.0000.04515.85
7.1.190.0030.03915.77
7.1.180.0070.03915.89
7.1.170.0030.03915.80
7.1.160.0070.03615.73
7.1.150.0070.03715.96
7.1.140.0060.03515.68
7.1.130.0030.04515.90
7.1.120.0070.03815.53
7.1.110.0030.04015.64
7.1.100.0030.03915.85
7.1.90.0030.04116.00
7.1.80.0100.03515.60
7.1.70.0070.03616.60
7.1.60.0050.06117.88
7.1.50.0050.05916.46
7.1.40.0030.04315.71
7.1.30.0070.03615.55
7.1.20.0000.04215.98
7.1.10.0030.04215.93
7.1.00.0030.05019.03
7.0.330.0070.03715.20
7.0.320.0070.03915.20
7.0.310.0070.04015.30
7.0.300.0030.04615.43
7.0.290.0060.03915.49
7.0.280.0060.03515.41
7.0.270.0030.04315.51
7.0.260.0000.04115.41
7.0.250.0030.04415.67
7.0.240.0000.04315.64
7.0.230.0000.04015.14
7.0.220.0060.03815.48
7.0.210.0000.04215.22
7.0.200.0030.03516.22
7.0.190.0070.04315.28
7.0.180.0030.04015.46
7.0.170.0030.03915.49
7.0.160.0000.04515.30
7.0.150.0100.03715.34
7.0.140.0050.07418.59
7.0.130.0040.04215.51
7.0.120.0070.03715.60
7.0.110.0000.04015.46
7.0.100.0100.04315.50
7.0.90.0030.04115.43
7.0.80.0070.03615.69
7.0.70.0070.03915.40
7.0.60.0070.08017.72
7.0.50.0080.07416.70
7.0.40.0060.08616.86
7.0.30.0180.07316.95
7.0.20.0120.05616.84
7.0.10.0070.06516.89
7.0.00.0080.05116.85
5.6.400.0030.04314.17
5.6.390.0000.04514.55
5.6.380.0070.03714.45
5.6.370.0060.04114.10
5.6.360.0100.04314.33
5.6.350.0000.05414.35
5.6.340.0060.03914.75
5.6.330.0000.05214.21
5.6.320.0100.03314.53
5.6.310.0030.04514.32
5.6.300.0130.03914.59
5.6.290.0030.04614.35
5.6.280.0050.05817.88
5.6.270.0130.03514.44
5.6.260.0100.03614.29
5.6.250.0030.04714.62
5.6.240.0070.04014.36
5.6.230.0070.03814.31
5.6.220.0070.04414.37
5.6.210.0020.06317.48
5.6.200.0080.08316.23
5.6.190.0080.05617.63
5.6.180.0170.06317.60
5.6.170.0180.07717.36
5.6.160.0080.05817.38
5.6.150.0030.06216.43
5.6.140.0000.07816.39
5.6.130.0070.07616.27
5.6.120.0070.08317.75
5.6.110.0050.05617.80
5.6.100.0100.07717.70
5.6.90.0120.05217.68
5.6.80.0050.05417.46
5.6.70.0060.04114.52
5.6.60.0100.03914.47
5.6.50.0030.04414.34
5.6.40.0060.03814.41
5.6.30.0030.05014.53
5.6.20.0030.04514.44
5.6.10.0070.03614.28
5.6.00.0100.03814.13
5.5.380.0070.04114.53
5.5.370.0100.04214.52
5.5.360.0070.04014.55
5.5.350.2050.06217.39
5.5.340.0080.06016.23
5.5.330.0100.05917.42
5.5.320.0180.07617.24
5.5.310.0180.07917.27
5.5.300.0030.06116.20
5.5.290.0050.08616.19
5.5.280.0050.07517.56
5.5.270.0100.05917.74
5.5.260.0030.08817.57
5.5.250.0020.05917.53
5.5.240.0080.07317.41
5.5.230.0000.04814.35
5.5.220.0030.04614.11
5.5.210.0100.03914.51
5.5.200.0000.04414.26
5.5.190.0040.04914.71
5.5.180.0000.04914.38
5.5.170.0090.03514.23
5.5.160.0100.04114.40
5.5.150.0060.04514.45
5.5.140.0070.04614.48
5.5.130.0070.04114.25
5.5.120.0070.04614.36
5.5.110.0000.04314.57
5.5.100.0000.04714.27
5.5.90.0070.04114.42
5.5.80.0030.04214.36
5.5.70.0030.04914.35
5.5.60.0030.04314.47
5.5.50.0030.04714.20
5.5.40.0070.04314.18
5.5.30.0070.04113.95
5.5.20.0030.04714.16
5.5.10.0030.03914.36
5.5.00.0070.03913.93
5.4.450.0170.06515.39
5.4.440.0420.07915.46
5.4.430.0370.07215.33
5.4.420.0030.07315.08
5.4.410.0530.07415.20
5.4.400.0200.06915.06
5.4.390.0430.07315.27
5.4.380.0170.06514.88
5.4.370.0250.06214.80
5.4.360.0220.06814.91
5.4.350.0050.05711.61
5.4.340.0050.05611.55
5.4.330.0040.04311.08
5.4.320.0060.06311.73
5.4.310.0050.05511.73
5.4.300.0040.05611.83
5.4.290.0050.05311.85
5.4.280.0040.05811.86
5.4.270.0050.05411.67
5.4.260.0060.05511.63
5.4.250.0050.08514.80
5.4.240.0050.06914.90
5.4.230.0100.06414.95
5.4.220.0030.07115.05
5.4.210.0050.06915.07
5.4.200.0070.06614.93
5.4.190.0020.07114.86
5.4.180.0080.06314.86
5.4.170.0080.06715.09
5.4.160.0070.07114.89
5.4.150.0100.06715.03
5.4.140.0050.07213.84
5.4.130.0050.06813.83
5.4.120.0070.08113.74
5.4.110.0050.06813.88
5.4.100.0050.06913.94
5.4.90.0080.06313.75
5.4.80.0070.06413.73
5.4.70.0030.06813.88
5.4.60.0100.06013.74
5.4.50.0020.07313.86
5.4.40.0080.06313.81
5.4.30.0020.07013.73
5.4.20.0020.06713.96
5.4.10.0070.06813.71
5.4.00.0080.06213.54
5.3.290.0060.05611.67
5.3.280.0070.08512.69
5.3.270.0000.08012.58
5.3.260.0030.07612.66
5.3.250.0050.07612.56
5.3.240.0070.07412.51
5.3.230.0050.07112.60
5.3.220.0050.07212.46
5.3.210.0050.06912.64
5.3.200.0070.06912.49
5.3.190.0030.07212.57
5.3.180.0000.07512.53
5.3.170.0000.07312.70
5.3.160.0070.06812.67
5.3.150.0020.07912.69
5.3.140.0070.06812.49
5.3.130.0030.07212.64
5.3.120.0050.06912.62
5.3.110.0110.07612.69
5.3.100.0020.07512.38
5.3.90.0080.06412.45
5.3.80.0070.06612.30
5.3.70.0050.06712.34
5.3.60.0070.06712.34
5.3.50.0080.06112.30
5.3.40.0050.06712.36
5.3.30.0070.06512.35
5.3.20.0050.06512.13
5.3.10.0030.07012.06
5.3.00.0070.07312.09
5.2.170.0030.12011.07
5.2.160.0030.09011.14
5.2.150.0000.10011.32
5.2.140.0100.11011.24
5.2.130.0130.08711.18
5.2.120.0000.09711.02
5.2.110.0100.09311.07
5.2.100.0000.10311.07
5.2.90.0170.10711.20
5.2.80.0070.09311.11
5.2.70.0030.13311.27
5.2.60.0100.10711.14
5.2.50.0000.11011.11
5.2.40.0070.09310.92
5.2.30.0070.09311.21
5.2.20.0070.11011.09
5.2.10.0000.12011.04
5.2.00.0000.12010.79
5.1.60.0100.09710.00
5.1.50.0030.11310.04
5.1.40.0030.11010.20
5.1.30.0130.10710.50
5.1.20.0100.11010.35
5.1.10.0030.11310.18
5.1.00.0030.11310.27
5.0.50.0030.1078.72
5.0.40.0000.1038.62
5.0.30.0030.1208.33
5.0.20.0030.1008.33
5.0.10.0030.1008.28
5.0.00.0030.1208.30
4.4.90.0000.1507.66
4.4.80.0030.1007.66
4.4.70.0000.0977.66
4.4.60.0000.1207.66
4.4.50.0070.0937.66
4.4.40.0000.1107.66
4.4.30.0030.1007.66
4.4.20.0070.0937.66
4.4.10.0030.1107.66
4.4.00.0000.1137.66
4.3.110.0030.0977.66
4.3.100.0070.1137.66
4.3.90.0000.0977.66
4.3.80.0030.1077.66
4.3.70.0000.1207.66
4.3.60.0100.0907.66
4.3.50.0070.0907.66
4.3.40.0000.1107.66
4.3.30.0030.0977.66
4.3.20.0000.1037.66
4.3.10.0000.1007.66
4.3.00.0030.0937.23

preferences:
40.4 ms | 400 KiB | 5 Q