3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(0); $length = 3; $charset = sprintf('%s', implode('',array_merge(range('0', '9'),range('a', 'z'),range('A', 'Z')))); for ($i = 0; $i < strlen($charset); $i++) $a[] = $charset{$i}; for ($i = 0, $c = "", $d = "\$str="; $i < $length; $i++){ $c .= "foreach(\$a as \$b[$i])"; $d .= "\$b[$i]."; } eval($c.$d."\"\";if(strpos(md5(\$str),'202cb962ac59075b964b07152d234b70')!== false){print\"\$str ==pass\n\";}");

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.60.0100.01016.59
8.3.50.0130.00817.56
8.3.40.0090.00618.62
8.3.30.0030.01218.77
8.3.20.0040.00418.51
8.3.10.0080.00020.44
8.3.00.0030.00519.13
8.2.180.0100.00716.38
8.2.170.0110.00422.96
8.2.160.0070.00720.89
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00420.76
8.2.110.0030.00720.82
8.2.100.0080.00317.66
8.2.90.0040.00619.34
8.2.80.0040.00419.34
8.2.70.0040.00417.25
8.2.60.0030.00917.91
8.2.50.0040.00418.07
8.2.40.0000.00718.22
8.2.30.0000.00717.79
8.2.20.0000.00717.53
8.2.10.0040.00417.46
8.2.00.0040.00417.64
8.1.280.0000.01425.92
8.1.270.0000.00824.66
8.1.260.0070.00326.35
8.1.250.0030.00628.09
8.1.240.0030.00722.32
8.1.230.0080.00320.89
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0070.00317.38
8.1.180.0000.00818.10
8.1.170.0040.00418.69
8.1.160.0070.00018.76
8.1.150.0000.00718.55
8.1.140.0000.00717.22
8.1.130.0030.00317.62
8.1.120.0070.00017.23
8.1.110.0020.00517.31
8.1.100.0050.00317.30
8.1.90.0000.00717.32
8.1.80.0020.00517.21
8.1.70.0000.00717.20
8.1.60.0000.00917.36
8.1.50.0000.00917.26
8.1.40.0000.00717.38
8.1.30.0040.00417.50
8.1.20.0000.00817.56
8.1.10.0040.00417.35
8.1.00.0070.00017.25
8.0.300.0070.00019.80
8.0.290.0040.00416.60
8.0.280.0000.00718.23
8.0.270.0000.00717.14
8.0.260.0000.00716.75
8.0.250.0000.00816.87
8.0.240.0070.00016.82
8.0.230.0060.00016.84
8.0.220.0050.00216.80
8.0.210.0000.00716.81
8.0.200.0060.00316.77
8.0.190.0030.00316.93
8.0.180.0040.00416.82
8.0.170.0000.01016.71
8.0.160.0070.00016.78
8.0.150.0000.00716.72
8.0.140.0050.00316.78
8.0.130.0030.00313.21
8.0.120.0040.00416.81
8.0.110.0040.00416.83
8.0.100.0000.00716.84
8.0.90.0000.00716.81
8.0.80.0090.00616.77
8.0.70.0070.00016.61
8.0.60.0040.00416.80
8.0.50.0050.00316.75
8.0.30.0050.01416.82
8.0.20.0130.00616.96
8.0.10.0070.00016.99
8.0.00.0140.00716.61
7.4.330.0030.02013.01
7.4.320.0030.02616.50
7.4.300.0030.02216.62
7.4.290.0070.02316.61
7.4.280.0000.02916.49
7.4.270.0000.02816.59
7.4.260.0060.02113.29
7.4.250.0040.02516.42
7.4.240.0000.02816.57
7.4.230.0030.02416.69
7.4.220.0070.03416.67
7.4.210.0070.03516.58
7.4.200.0030.02416.71
7.4.190.0040.02616.71
7.4.160.0060.05816.73
7.4.150.0030.03916.52
7.4.140.0130.02816.60
7.4.130.0090.04016.55
7.4.120.0120.03016.48
7.4.110.0100.03916.54
7.4.100.0100.03316.44
7.4.90.0100.03216.35
7.4.80.0100.03219.39
7.4.70.0090.03216.48
7.4.60.0030.03616.49
7.4.50.0030.04016.63
7.4.40.0070.04116.53
7.4.30.0100.03016.54
7.4.00.0000.04715.05
7.3.330.0030.02413.22
7.3.320.0070.02313.09
7.3.310.0000.02816.41
7.3.300.0000.02716.24
7.3.290.0100.03016.36
7.3.280.0070.03716.36
7.3.270.0120.02816.45
7.3.260.0060.03616.33
7.3.250.0160.04216.35
7.3.240.0100.02916.69
7.3.230.0130.02616.53
7.3.210.0070.03416.66
7.3.200.0110.03716.55
7.3.190.0060.04616.28
7.3.180.0070.03116.62
7.3.170.0090.03416.60
7.3.160.0140.05016.45
7.3.120.0090.03414.99
7.2.330.0120.03816.61
7.2.320.0070.03716.58
7.2.310.0100.05816.84
7.2.300.0130.02916.59
7.2.290.0140.02816.61
7.1.100.0030.03418.13
7.1.70.0070.02217.24
7.1.60.0100.05219.40
7.1.50.0100.04616.69
7.1.00.0070.10322.41
7.0.200.0280.03614.73
7.0.140.0000.11722.10
7.0.120.0030.10322.05
7.0.60.0070.10719.79
7.0.50.0030.08317.82
7.0.40.0100.11020.40
7.0.30.0630.08720.30
7.0.20.0400.12020.13
7.0.10.0330.08720.09
7.0.00.0030.11720.19
5.6.280.0000.15320.77
5.6.210.0070.12020.64
5.6.200.0130.12718.08
5.6.190.0070.11320.62
5.6.180.0370.12720.43
5.6.170.0400.11720.50
5.6.160.0030.08320.51
5.6.150.0030.13018.18
5.6.140.0130.12018.11
5.6.130.0030.09318.12
5.6.120.0170.13021.09
5.6.110.0070.14321.07
5.6.100.0200.11720.97
5.6.90.0000.12720.97
5.6.80.0030.10320.35
5.6.70.0270.11320.53
5.5.350.0200.13020.35
5.5.340.0000.09717.96
5.5.330.0170.12020.40
5.5.320.0200.13020.29
5.5.310.0330.12020.29
5.5.300.0100.14017.88
5.5.290.0130.07717.88
5.5.280.0170.13020.68
5.5.270.0070.13320.72
5.5.260.0000.13720.76
5.5.250.0170.13320.69
5.5.240.0000.08320.17
5.4.450.0100.12719.41
5.4.440.0130.12719.24
5.4.430.0070.13019.43
5.4.420.0100.08719.46
5.4.410.0130.13719.27
5.4.400.0130.12719.18
5.4.390.0070.09019.08
5.4.380.0070.08018.79
5.4.370.0070.14019.18
5.4.360.0070.13319.09
5.4.350.0070.12719.14
5.4.340.0030.13018.82
5.4.320.0100.12019.08
5.4.310.0000.08318.93
5.4.300.0230.11718.79
5.4.290.0000.13318.89
5.4.280.0000.08719.14
5.4.270.0070.10718.93
5.4.260.0100.07718.78
5.4.250.0070.13019.17
5.4.240.0100.14018.88
5.4.230.0070.08318.91
5.4.220.0030.14319.17
5.4.210.0070.13019.09
5.4.200.0070.11319.07
5.4.190.0100.12318.91
5.4.180.0070.13719.13
5.4.170.0070.07718.93
5.4.160.0030.09719.14
5.4.150.0070.08018.78
5.4.140.0030.10716.48
5.4.130.0000.09016.21
5.4.120.0130.08016.47
5.4.110.0030.08316.25
5.4.100.0070.08316.40
5.4.90.0170.12016.39
5.4.80.0130.08716.16
5.4.70.0000.10316.23
5.4.60.0070.08716.21
5.4.50.0030.10316.34
5.4.40.0100.10016.14
5.4.30.0000.09016.23
5.4.20.0030.08716.34
5.4.10.0070.13016.30
5.4.00.0030.10015.93
5.3.290.0030.08014.79
5.3.280.0070.14014.64
5.3.270.0000.08314.44
5.3.260.0070.13014.51
5.3.250.0000.08714.56
5.3.240.0030.08314.61
5.3.230.0170.12314.50
5.3.220.0070.08014.61
5.3.210.0030.11714.56
5.3.200.0130.13014.50
5.3.190.0070.08314.56
5.3.180.0000.10314.54
5.3.170.0030.13314.53
5.3.160.0030.09714.54
5.3.150.0100.13314.38
5.3.140.0100.12314.51
5.3.130.0100.12014.52
5.3.120.0100.14014.52
5.3.110.0070.13014.66
5.3.100.0130.13013.96
5.3.90.0070.10314.00
5.3.80.0100.12314.02
5.3.70.0100.12313.99
5.3.60.0130.13013.96
5.3.50.0000.09013.92
5.3.40.0000.11713.82
5.3.30.0070.09713.86
5.3.20.0030.08313.56
5.3.10.0100.10713.70
5.3.00.0030.13713.60
5.2.170.0030.08011.18
5.2.160.0070.13011.07
5.2.150.0030.08011.08
5.2.140.0130.12011.24
5.2.130.0030.14011.14
5.2.120.0130.12711.02
5.2.110.0000.11311.03
5.2.100.0030.08711.14
5.2.90.0100.11311.02
5.2.80.0100.07311.05
5.2.70.0070.13011.06
5.2.60.0000.10310.90
5.2.50.0030.14011.20
5.2.40.0100.07711.01
5.2.30.0100.10311.02
5.2.20.0030.12710.87
5.2.10.0070.08710.89
5.2.00.0030.07310.75
5.1.60.0000.07310.18
5.1.50.0030.08010.08
5.1.40.0030.1339.96
5.1.30.0030.12010.36
5.1.20.0070.07010.38
5.1.10.0000.07310.07
5.1.00.0000.07710.15
5.0.50.0030.1238.63
5.0.40.0100.1478.39
5.0.30.0000.1338.20
5.0.20.0000.1278.25
5.0.10.0030.1338.29
5.0.00.0030.1838.26
4.4.90.0030.1078.20
4.4.80.0030.1038.20
4.4.70.0000.1308.20
4.4.60.0000.1178.20
4.4.50.0070.1508.20
4.4.40.0030.1078.20
4.4.30.0000.1578.20
4.4.20.0030.1008.20
4.4.10.0000.1708.20
4.4.00.0030.1608.20
4.3.110.0070.0838.20
4.3.100.0000.1078.20
4.3.90.0000.1208.20
4.3.80.0130.1438.20
4.3.70.0030.1808.20
4.3.60.0030.1638.20
4.3.50.0030.1208.20
4.3.40.0070.1908.20
4.3.30.0000.1978.20
4.3.20.0100.1738.20
4.3.10.0000.1278.20
4.3.00.0000.1538.20

preferences:
135.93 ms | 401 KiB | 5 Q