3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 50; $code = ' $ret = ""; for ($j=0; $j<100; $j++) { $ret.= md5($j.$i.$ret); } return $ret;'; $fName = create_function('$j', $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.0100.03014.76
7.4.00.0070.03314.74
7.3.130.0100.02914.95
7.3.120.0100.02914.80
7.3.110.0060.03214.84
7.3.100.0090.02714.64
7.3.90.0100.02314.97
7.3.80.0030.02615.02
7.3.70.0070.02414.96
7.3.60.0070.02414.80
7.3.50.0100.02314.74
7.3.40.0100.02314.91
7.3.30.0030.03214.98
7.3.20.0130.02016.75
7.3.10.0100.02716.74
7.3.00.0030.03516.27
7.2.260.0130.02215.43
7.2.250.0180.02014.61
7.2.240.0060.02915.10
7.2.230.0030.03314.84
7.2.220.0120.02515.00
7.2.210.0100.02214.68
7.2.200.0130.02315.30
7.2.190.0070.02815.18
7.2.180.0030.03115.13
7.2.170.0040.03015.22
7.2.160.0130.02315.06
7.2.150.0100.02216.71
7.2.140.0100.02316.95
7.2.130.0070.03216.90
7.2.120.0100.02916.77
7.2.110.0070.02816.66
7.2.100.0030.03116.65
7.2.90.0030.03016.82
7.2.80.0130.02016.69
7.2.70.0030.02416.81
7.2.60.0070.02416.95
7.2.50.0030.03716.74
7.2.40.0070.02116.98
7.2.30.0030.03016.90
7.2.20.0070.03116.93
7.2.10.0060.02117.02
7.2.00.0050.03018.21
7.1.330.0130.01915.45
7.1.320.0130.02315.63
7.1.310.0090.02216.05
7.1.300.0030.03015.99
7.1.290.0030.02815.41
7.1.280.0000.03015.77
7.1.270.0120.01815.77
7.1.260.0040.02915.88
7.1.250.0070.02715.78
7.1.240.0070.02715.72
7.1.230.0000.03615.66
7.1.220.0000.03015.73
7.1.210.0000.02815.87
7.1.200.0040.02815.78
7.1.190.0130.01615.71
7.1.180.0100.02415.44
7.1.170.0030.02515.95
7.1.160.0040.02515.86
7.1.150.0000.03115.75
7.1.140.0070.03115.77
7.1.130.0070.02615.98
7.1.120.0000.02615.80
7.1.110.0130.01915.82
7.1.100.0060.02615.94
7.1.90.0070.02715.96
7.1.80.0070.02415.84
7.1.70.0000.03616.49
7.1.60.0080.02116.61
7.1.50.0050.04216.53
7.1.40.0090.02215.80
7.1.30.0060.02815.63
7.1.20.0000.02915.88
7.1.10.0070.02615.76
7.1.00.0050.06219.21
7.0.330.0100.02215.42
7.0.320.0030.02715.16
7.0.310.0070.02415.25
7.0.300.0060.02615.39
7.0.290.0060.02615.58
7.0.280.0070.03215.24
7.0.270.0100.02015.61
7.0.260.0030.02315.46
7.0.250.0040.02615.54
7.0.240.0000.03515.54
7.0.230.0070.02315.54
7.0.220.0030.02715.56
7.0.210.0070.02415.50
7.0.200.0050.03716.12
7.0.190.0030.03815.25
7.0.180.0030.02615.45
7.0.170.0130.02715.55
7.0.160.0100.02215.39
7.0.150.0130.01615.50
7.0.140.0070.05918.76
7.0.130.0030.02915.64
7.0.120.0000.03115.52
7.0.110.0030.02915.47
7.0.100.0090.02215.46
7.0.90.0070.02715.35
7.0.80.0130.02315.33
7.0.70.0030.03415.46
7.0.60.0120.05517.72
7.0.50.0050.05516.80
7.0.40.0070.05616.67
7.0.30.0170.05816.80
7.0.20.0170.05516.79
7.0.10.0150.04516.75
7.0.00.0030.04816.81
5.6.400.0070.03014.72
5.6.390.0070.02414.23
5.6.380.0000.02814.81
5.6.370.0030.03014.82
5.6.360.0070.02614.23
5.6.350.0030.02314.67
5.6.340.0000.03514.27
5.6.330.0030.02914.60
5.6.320.0130.02314.75
5.6.310.0030.02814.07
5.6.300.0000.03014.74
5.6.290.0030.02914.56
5.6.280.0080.06717.64
5.6.270.0030.03314.79
5.6.260.0090.02514.54
5.6.250.0090.02814.57
5.6.240.0070.03214.60
5.6.230.0100.02614.42
5.6.220.0030.03614.39
5.6.210.0080.05717.65
5.6.200.0020.06116.30
5.6.190.0080.04717.43
5.6.180.0120.04817.45
5.6.170.0180.05017.34
5.6.160.0130.06317.44
5.6.150.0080.06216.38
5.6.140.0120.06016.23
5.6.130.0080.06916.32
5.6.120.0070.07317.63
5.6.110.0050.04817.65
5.6.100.0060.04417.79
5.6.90.0070.05917.71
5.6.80.0030.06817.54
5.6.70.0030.03614.30
5.6.60.0100.02614.67
5.6.50.0090.02214.37
5.6.40.0070.02714.59
5.6.30.0030.03014.07
5.6.20.0070.03014.44
5.6.10.0090.02514.29
5.6.00.0030.03114.30
5.5.380.0070.03614.57
5.5.370.0070.03014.75
5.5.360.0000.03414.48
5.5.350.0100.05417.28
5.5.340.0100.07417.70
5.5.330.0090.05617.35
5.5.320.0080.05517.80
5.5.310.0120.06117.57
5.5.300.0080.05616.30
5.5.290.0080.06316.29
5.5.280.0100.05517.72
5.5.270.0050.04717.59
5.5.260.0080.05717.62
5.5.250.0070.05217.50
5.5.240.0150.04617.23
5.5.230.0070.02414.35
5.5.220.0060.02614.11
5.5.210.0060.03114.36
5.5.200.0030.03414.46
5.5.190.0000.03314.57
5.5.180.0030.03414.19
5.5.170.0060.02614.37
5.5.160.0060.02214.46
5.5.150.0030.02914.36
5.5.140.0060.02614.43
5.5.130.0030.03114.00
5.5.120.0070.02214.07
5.5.110.0060.02614.52
5.5.100.0030.02814.26
5.5.90.0100.03014.22
5.5.80.0100.02614.52
5.5.70.0030.03014.13
5.5.60.0100.02414.32
5.5.50.0000.03414.54
5.5.40.0100.02414.41
5.5.30.0000.04014.41
5.5.20.0070.02414.41
5.5.10.0090.02214.54
5.5.00.0000.03714.01
5.4.450.0130.05516.41
5.4.440.0200.06016.54
5.4.430.0100.05516.60
5.4.420.0130.05016.52
5.4.410.0180.04916.37
5.4.400.0130.04916.44
5.4.390.2050.04116.42
5.4.380.0180.06216.42
5.4.370.0200.05816.38
5.4.360.0200.05416.31
5.4.350.0120.05116.38
5.4.340.0080.05216.44
5.4.330.0030.02413.65
5.4.320.0170.05216.42
5.4.310.0100.04816.38
5.4.300.0180.06416.43
5.4.290.0070.05216.38
5.4.280.0270.06216.35
5.4.270.0080.05116.29
5.4.260.0180.05616.44
5.4.250.0200.05516.33
5.4.240.0170.03616.23
5.4.230.0100.04916.38
5.4.220.0200.05916.25
5.4.210.0070.05416.40
5.4.200.0100.05116.36
5.4.190.0080.05516.39
5.4.180.0070.05816.37
5.4.170.0180.05916.25
5.4.160.0180.05816.35
5.4.150.1870.04016.47
5.4.140.2170.04114.99
5.4.130.0070.05515.08
5.4.120.0150.04614.97
5.4.110.0050.05915.06
5.4.100.0120.04314.95
5.4.90.0070.05115.00
5.4.80.0070.05415.07
5.4.70.0050.05815.01
5.4.60.0070.05115.09
5.4.50.0070.06015.05
5.4.40.0130.05515.07
5.4.30.0030.04415.11
5.4.20.0100.04915.10
5.4.10.0070.05615.07
5.4.00.0120.05014.75
5.3.290.2150.04114.19
5.3.280.2020.03414.27
5.3.270.0120.05014.08
5.3.260.0050.06213.99
5.3.250.0770.04914.05
5.3.240.0020.05714.04
5.3.230.0180.03714.04
5.3.220.1900.04014.14
5.3.210.0020.05914.06
5.3.200.0120.04013.98
5.3.190.1630.05214.14
5.3.180.0080.07114.05
5.3.170.0120.05614.07
5.3.160.0290.06314.07
5.3.150.0130.04614.10
5.3.140.0080.05114.02
5.3.130.0080.05614.04
5.3.120.0270.05613.98
5.3.110.0050.07214.03
5.3.100.0080.05413.78
5.3.90.0350.05613.72
5.3.80.0280.05513.69
5.3.70.0120.04613.69
5.3.60.0050.05213.71
5.3.50.0130.05513.70
5.3.40.0220.05913.74
5.3.30.0250.06113.66
5.3.20.0200.06213.57
5.3.10.0120.04813.55
5.3.00.0400.03413.57
5.2.170.0470.05711.84
5.2.160.0470.06011.86
5.2.150.2900.05011.88
5.2.140.2800.05311.87
5.2.130.0070.07010.75
5.2.120.0070.09710.89
5.2.110.0030.08010.85
5.2.100.0400.04711.85
5.2.90.0130.07710.92
5.2.80.0070.08310.90
5.2.70.0100.08010.89
5.2.60.0300.05311.87
5.2.50.3070.05011.87
5.2.40.0070.07010.91
5.2.30.0200.05311.85
5.2.20.0170.05311.85
5.2.10.0100.11010.70
5.2.00.0130.08010.70
5.1.60.0400.08311.88
5.1.50.0000.0879.91
5.1.40.0070.0809.78
5.1.30.0030.09013.88
5.1.20.0000.10010.16
5.1.10.0030.0909.98
5.1.00.0030.0779.96
5.0.50.0130.05013.88
5.0.40.0030.0808.18
5.0.30.0070.0878.14
5.0.20.0270.08013.88
5.0.10.1600.05013.88
5.0.00.0070.1008.07
4.4.90.0070.0638.58
4.4.80.0000.06013.88
4.4.70.0030.0708.58
4.4.60.0070.0978.58
4.4.50.0070.04313.91
4.4.40.0030.10313.88
4.4.30.0030.0738.58
4.4.20.0100.08313.87
4.4.10.0130.06313.91
4.4.00.0170.05713.87
4.3.110.0100.0708.07
4.3.100.0230.05713.91
4.3.90.0130.05313.91
4.3.80.0070.10313.90
4.3.70.0100.04313.91
4.3.60.1600.04313.91
4.3.50.0130.0707.83
4.3.40.1330.04713.91
4.3.30.0270.07013.91
4.3.20.0100.0637.57
4.3.10.0030.0737.56
4.3.00.0130.07013.91

preferences:
30.36 ms | 401 KiB | 5 Q