3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Route { public static $routes = array(); public static function get($path,$route) { static::$routes[$path] = $route; } public static function run() { foreach (static::$routes as $route) echo $route(); } } Route::get('home', function() { return 'hello'; }); Route::run();

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.0080.00618.23
8.3.50.0090.01221.14
8.3.40.0070.00718.87
8.3.30.0070.00720.35
8.3.20.0080.00020.48
8.3.10.0040.00420.84
8.3.00.0050.00223.53
8.2.180.0120.00916.63
8.2.170.0140.00722.96
8.2.160.0130.00320.43
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0030.00619.27
8.2.100.0070.00417.72
8.2.90.0000.00819.17
8.2.80.0040.00418.02
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0040.00418.12
8.2.30.0060.00319.32
8.2.20.0000.00717.61
8.2.10.0040.00417.75
8.2.00.0040.00417.68
8.1.280.0060.00825.92
8.1.270.0040.00423.99
8.1.260.0110.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00620.82
8.1.230.0120.00020.92
8.1.220.0040.00418.77
8.1.210.0030.01018.97
8.1.200.0040.00417.35
8.1.190.0030.00517.53
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0050.00318.71
8.1.150.0000.00718.49
8.1.140.0040.00417.34
8.1.130.0000.00717.61
8.1.120.0040.00417.34
8.1.110.0050.00317.40
8.1.100.0060.00317.27
8.1.90.0000.00717.41
8.1.80.0040.00417.39
8.1.70.0070.00017.45
8.1.60.0030.00617.55
8.1.50.0040.00417.44
8.1.40.0040.00417.36
8.1.30.0050.00317.52
8.1.20.0050.00317.57
8.1.10.0080.00017.51
8.1.00.0050.00317.39
8.0.300.0070.00019.97
8.0.290.0040.00417.16
8.0.280.0000.00818.45
8.0.270.0050.00216.86
8.0.260.0000.00716.79
8.0.250.0000.00717.02
8.0.240.0000.01116.98
8.0.230.0080.00016.88
8.0.220.0040.00416.80
8.0.210.0030.00516.91
8.0.200.0000.00716.83
8.0.190.0040.00416.82
8.0.180.0070.00016.83
8.0.170.0030.00316.97
8.0.160.0000.00716.91
8.0.150.0030.00316.91
8.0.140.0000.00816.94
8.0.130.0030.00313.29
8.0.120.0040.00416.84
8.0.110.0050.00216.90
8.0.100.0000.00716.80
8.0.90.0040.00416.68
8.0.80.0100.01116.83
8.0.70.0000.00716.82
8.0.60.0000.00716.93
8.0.50.0000.00716.92
8.0.30.0100.01117.08
8.0.20.0220.01417.40
8.0.10.0040.00416.95
8.0.00.0130.00816.79
7.4.330.0040.00415.06
7.4.320.0000.00716.50
7.4.300.0060.00016.43
7.4.290.0040.00416.61
7.4.280.0000.00816.42
7.4.270.0040.00416.44
7.4.260.0050.00013.27
7.4.250.0070.00016.55
7.4.240.0030.00316.63
7.4.230.0030.00316.35
7.4.220.0080.01216.55
7.4.210.0120.00716.60
7.4.200.0000.00716.71
7.4.190.0000.00716.75
7.4.160.0170.00016.54
7.4.150.0070.01117.40
7.4.140.0080.01017.86
7.4.130.0060.01016.47
7.4.120.0080.01116.48
7.4.110.0140.00416.55
7.4.100.0090.00916.61
7.4.90.0090.00916.63
7.4.80.0140.00319.39
7.4.70.0130.01016.63
7.4.60.0130.00716.65
7.4.50.0030.00616.50
7.4.40.0000.01622.77
7.4.30.0070.01016.52
7.4.00.0110.00414.85
7.3.330.0030.00313.35
7.3.320.0000.00613.36
7.3.310.0000.00716.36
7.3.300.0030.00316.28
7.3.290.0030.01216.39
7.3.280.0080.00816.33
7.3.270.0150.00417.40
7.3.260.0110.00918.24
7.3.250.0080.01216.45
7.3.240.0070.01016.40
7.3.230.0170.00616.52
7.3.210.0030.01316.31
7.3.200.0120.00619.39
7.3.190.0130.01016.42
7.3.180.0110.01116.50
7.3.170.0140.00316.58
7.3.160.0120.00816.34
7.3.120.0110.00415.06
7.2.330.0030.01616.61
7.2.320.0110.00516.48
7.2.310.0120.00916.54
7.2.300.0130.00316.69
7.2.290.0060.01216.61
7.1.100.0000.01118.29
7.1.70.0000.00917.16
7.1.60.0090.01319.17
7.1.50.0090.01616.70
7.1.00.0030.04022.46
7.0.200.0030.00316.77
7.0.140.0030.07322.19
7.0.100.0070.07319.93
7.0.90.0100.05320.02
7.0.80.0070.08019.88
7.0.70.0170.07019.84
7.0.60.0030.05019.98
7.0.50.0230.07020.39
7.0.40.0170.04720.10
7.0.30.0070.08319.99
7.0.20.0030.08320.09
7.0.10.0100.08320.14
7.0.00.0100.08320.10
5.6.280.0070.07020.89
5.6.250.0100.08320.73
5.6.240.0100.08320.57
5.6.230.0100.08320.70
5.6.220.0070.06720.68
5.6.210.0070.06320.47
5.6.200.0070.08321.09
5.6.190.0130.07720.89
5.6.180.0070.04720.96
5.6.170.0030.05321.04
5.6.160.0030.06721.14
5.6.150.0070.08321.07
5.6.140.0030.06021.12
5.6.130.0030.08321.17
5.6.120.0100.05720.95
5.6.110.0130.09321.07
5.6.100.0100.07320.94
5.6.90.0070.06721.09
5.6.80.0100.07020.41
5.6.70.0200.04320.50
5.6.60.0070.04720.48
5.6.50.0030.08320.47
5.6.40.0100.07720.31
5.6.30.0100.08020.37
5.6.20.0070.08020.38
5.6.10.0070.05320.37
5.6.00.0130.08320.36
5.5.380.0070.06020.41
5.5.370.0130.07720.38
5.5.360.0170.08020.34
5.5.350.0100.07720.48
5.5.340.0100.07720.91
5.5.330.0130.06720.75
5.5.320.0100.08320.84
5.5.310.0170.06720.93
5.5.300.0000.09320.84
5.5.290.0100.04320.91
5.5.280.0170.07720.89
5.5.270.0030.07320.87
5.5.260.0100.06720.91
5.5.250.0000.05320.61
5.5.240.0100.03720.22
5.5.230.0170.07020.25
5.5.220.0170.06720.26
5.5.210.0130.07020.24
5.5.200.0070.08020.28
5.5.190.0100.07320.13
5.5.180.0170.06320.24
5.5.160.0170.07320.14
5.5.150.0100.06020.09
5.5.140.0030.07720.14
5.5.130.0070.08320.18
5.5.120.0070.04720.23
5.5.110.0030.06720.11
5.5.100.0130.06720.17
5.5.90.0030.07320.07
5.5.80.0030.05020.10
5.5.70.0070.06020.13
5.5.60.0030.08020.15
5.5.50.0070.06720.10
5.5.40.0070.07020.05
5.5.30.0030.07320.07
5.5.20.0130.07020.04
5.5.10.0030.08020.02
5.5.00.0070.07020.05
5.4.450.0070.06719.37
5.4.440.0030.08019.23
5.4.430.0100.07319.35
5.4.420.0030.07019.35
5.4.410.0070.05319.22
5.4.400.0100.04019.09
5.4.390.0100.03319.09
5.4.380.0030.06719.13
5.4.370.0070.07318.95
5.4.360.0070.07718.85
5.4.350.0100.05319.14
5.4.340.0070.07319.14
5.4.320.0030.06019.05
5.4.310.0130.07319.09
5.4.300.0100.06719.03
5.4.290.0030.04719.08
5.4.280.0000.08318.90
5.4.270.0070.05318.90
5.4.260.0100.06019.16
5.4.250.0070.06319.20
5.4.240.0030.04019.13
5.4.230.0030.08019.22
5.4.220.0030.06019.09
5.4.210.0030.07319.04
5.4.200.0100.07019.02
5.4.190.0000.08319.03
5.4.180.0100.06318.94
5.4.170.0100.05019.04
5.4.160.0130.07318.85
5.4.150.0130.07019.12
5.4.140.0230.05316.39
5.4.130.0070.07716.37
5.4.120.0070.06016.40
5.4.110.0100.07016.42
5.4.100.0070.07716.34
5.4.90.0030.09716.35
5.4.80.0030.07716.33
5.4.70.0030.05716.32
5.4.60.0100.07316.34
5.4.50.0030.06716.33
5.4.40.0100.07316.45
5.4.30.0100.07316.48
5.4.20.0070.07716.33
5.4.10.0130.06316.30
5.4.00.0030.08015.80
5.3.290.0070.07314.79
5.3.280.0070.03314.67
5.3.270.0070.07714.73
5.3.260.0070.07014.73
5.3.250.0070.07714.73
5.3.240.0130.07014.63
5.3.230.0030.04314.62
5.3.220.0130.06014.52
5.3.210.0070.04014.63
5.3.200.0070.07314.53
5.3.190.0030.07714.55
5.3.180.0070.06714.59
5.3.170.0230.03714.61
5.3.160.0070.06714.50
5.3.150.0030.07314.64
5.3.140.0170.06714.57
5.3.130.0070.07714.68
5.3.120.0030.07714.62
5.3.110.0100.07014.53
5.3.100.0100.05014.18
5.3.90.0000.07314.09
5.3.80.0130.06713.92
5.3.70.0100.06314.04
5.3.60.0070.07014.04
5.3.50.0070.05014.07
5.3.40.0070.07714.04
5.3.30.0130.07713.97
5.3.20.0030.06713.70
5.3.10.0030.07713.80
5.3.00.0170.06313.71
5.2.170.0070.06011.05
5.2.160.0070.03011.24
5.2.150.0070.06011.24
5.2.140.0000.06711.14
5.2.130.0070.06311.02
5.2.120.0100.02711.12
5.2.110.0030.06311.15
5.2.100.0030.06011.15
5.2.90.0100.05310.98
5.2.80.0130.05710.98
5.2.70.0070.06311.02
5.2.60.0070.06011.13
5.2.50.0000.06711.06
5.2.40.0030.06010.91
5.2.30.0030.04310.98
5.2.20.0070.06010.86
5.2.10.0030.04010.92
5.2.00.0030.04010.65
5.1.60.0000.04310.05
5.1.50.0030.04010.08
5.1.40.0000.05310.03
5.1.30.0070.04010.44
5.1.20.0070.04310.42
5.1.10.0030.04710.08
5.1.00.0030.05010.18
5.0.50.0030.0478.40
5.0.40.0030.0338.52
5.0.30.0000.0438.21
5.0.20.0000.0208.30
5.0.10.0000.0238.20
5.0.00.0000.0308.16
4.4.90.0030.0338.08
4.4.80.0030.0278.08
4.4.70.0000.0378.08
4.4.60.0000.0378.08
4.4.50.0000.0308.08
4.4.40.0030.0508.08
4.4.30.0030.0338.08
4.4.20.0030.0338.08
4.4.10.0070.0238.08
4.4.00.0070.0538.08
4.3.110.0030.0308.08
4.3.100.0030.0308.08
4.3.90.0000.0338.08
4.3.80.0030.0238.08
4.3.70.0000.0178.08
4.3.60.0000.0178.08
4.3.50.0030.0278.08
4.3.40.0000.0238.08
4.3.30.0000.0178.08
4.3.20.0030.0138.08
4.3.10.0000.0178.08
4.3.00.0000.0178.08

preferences:
44.95 ms | 401 KiB | 5 Q