3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class Foo { public $foo; public function __construct() { $this->foo = function (int $a) { var_dump("foo"); }; } } } namespace { ((new A\Foo)->foo)(null); }

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.0160.00718.56
8.3.60.0140.00718.43
8.3.50.0120.01021.06
8.3.40.0090.00618.95
8.3.30.0060.00819.18
8.3.20.0080.00020.34
8.3.10.0000.00721.76
8.3.00.0070.00023.66
8.2.190.0070.00716.58
8.2.180.0120.00616.63
8.2.170.0170.00322.96
8.2.160.0060.01322.09
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0100.00626.16
8.2.120.0050.00319.48
8.2.110.0060.01020.53
8.2.100.0160.00017.84
8.2.90.0040.00417.88
8.2.80.0060.00318.91
8.2.70.0000.00817.63
8.2.60.0040.00417.75
8.2.50.0030.00617.80
8.2.40.0060.00319.78
8.2.30.0040.00419.91
8.2.20.0030.00517.65
8.2.10.0070.00018.18
8.2.00.0030.00518.04
8.1.280.0070.00725.92
8.1.270.0000.00820.20
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.88
8.1.230.0080.00422.65
8.1.220.0040.00418.57
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0030.00517.62
8.1.160.0050.00321.96
8.1.150.0000.00718.74
8.1.140.0040.00417.50
8.1.130.0000.00817.68
8.1.120.0000.00717.48
8.1.110.0000.00717.38
8.1.100.0000.00817.35
8.1.90.0040.00317.51
8.1.80.0050.00317.35
8.1.70.0030.00317.49
8.1.60.0060.00317.62
8.1.50.0080.00017.59
8.1.40.0050.00317.45
8.1.30.0040.00417.50
8.1.20.0000.00817.55
8.1.10.0020.00517.54
8.1.00.0070.00017.37
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0000.00818.43
8.0.270.0030.00517.13
8.0.260.0000.00817.19
8.0.250.0040.00416.98
8.0.240.0030.00316.95
8.0.230.0000.00816.86
8.0.220.0000.00816.91
8.0.210.0000.00716.88
8.0.200.0000.00816.88
8.0.190.0040.00416.92
8.0.180.0000.00716.98
8.0.170.0040.00417.00
8.0.160.0030.00316.86
8.0.150.0070.00016.84
8.0.140.0040.00416.85
8.0.130.0000.00713.40
8.0.120.0000.00816.81
8.0.110.0000.00716.93
8.0.100.0040.00416.83
8.0.90.0040.00417.07
8.0.80.0060.00916.86
8.0.70.0040.00417.00
8.0.60.0040.00416.75
8.0.50.0000.00816.82
8.0.30.0060.01217.00
8.0.20.0080.01117.40
8.0.10.0000.00817.06
8.0.00.0050.01416.77
7.4.330.0000.00515.08
7.4.320.0030.00316.39
7.4.300.0000.00716.57
7.4.290.0040.00416.57
7.4.280.0000.00716.49
7.4.270.0000.00716.49
7.4.260.0030.00416.50
7.4.250.0040.00416.51
7.4.240.0050.00216.47
7.4.230.0000.00716.63
7.4.220.0090.01016.65
7.4.210.0050.00816.44
7.4.200.0000.00716.57
7.4.160.0040.01216.70
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0050.01216.42
7.4.120.0120.00916.39
7.4.110.0110.00716.69
7.4.100.0120.00916.56
7.4.90.0030.01316.57
7.4.80.0070.01419.39
7.4.70.0090.00916.70
7.4.60.0060.00916.69
7.4.50.0000.00616.38
7.4.40.0090.00616.65
7.4.30.0140.00816.59
7.4.00.0070.00715.12
7.3.330.0000.00513.38
7.3.320.0000.00513.34
7.3.310.0030.00316.24
7.3.300.0030.00316.20
7.3.290.0080.00616.36
7.3.280.0090.00816.34
7.3.270.0180.00417.40
7.3.260.0150.00616.33
7.3.250.0130.00616.35
7.3.240.0070.01016.30
7.3.230.0090.00916.43
7.3.210.0120.00616.52
7.3.200.0100.00616.33
7.3.190.0070.01016.43
7.3.180.0160.00016.48
7.3.170.0070.01016.57
7.3.160.0070.01016.39
7.3.120.0060.01114.70
7.3.110.0070.01014.59
7.3.100.0000.01314.96
7.3.90.0040.00414.72
7.3.80.0090.00614.73
7.3.70.0080.00414.88
7.3.60.0070.00714.56
7.3.50.0070.00714.61
7.3.40.0040.00414.74
7.3.30.0090.00614.76
7.3.20.0090.00616.67
7.3.10.0100.00716.38
7.3.00.0050.00916.68
7.2.330.0030.01516.77
7.2.320.0150.00316.71
7.2.310.0060.01316.43
7.2.300.0060.01516.36
7.2.290.0110.01116.40
7.2.240.0070.01114.87
7.2.230.0060.00614.81
7.2.220.0060.00614.84
7.2.210.0030.00715.14
7.2.200.0070.01014.93
7.2.190.0090.00314.89
7.2.180.0080.00414.66
7.2.170.0100.00714.89
7.2.160.0050.00514.99
7.2.150.0070.01016.78
7.2.140.0040.01116.93
7.2.130.0070.00716.76
7.2.120.0090.00716.83
7.2.110.0120.00516.77
7.2.100.0090.00616.60
7.2.90.0080.00816.60
7.2.80.0090.00516.74
7.2.70.0060.00716.62
7.2.60.0080.00616.64
7.2.50.0090.00616.65
7.2.40.0110.00616.75
7.2.30.0070.00716.53
7.2.20.0050.01016.72
7.2.10.0030.00816.75
7.2.00.0080.00617.65
7.1.330.0060.00915.47
7.1.320.0080.00415.59
7.1.310.0100.00315.53
7.1.300.0060.00915.65
7.1.290.0050.00515.51
7.1.280.0030.00915.48
7.1.270.0080.00015.50
7.1.260.0090.00615.53
7.1.250.0050.01015.63
7.1.200.0000.01215.71
7.1.100.0040.01417.85
7.1.70.0060.00616.97
7.1.60.0100.01319.42
7.1.50.0210.01734.61
7.1.00.0030.07022.32
7.0.200.0260.00314.92
7.0.60.0030.06020.00
7.0.50.0100.08017.86
7.0.40.0200.04320.21
7.0.30.0170.09020.23
7.0.20.0330.06720.24
7.0.10.0030.04320.06
7.0.00.0100.04320.24
5.6.280.0070.04321.10
5.6.210.0030.04020.68
5.6.200.0030.04018.15
5.6.190.0000.04720.46
5.6.180.0300.06720.79
5.6.170.0370.07320.55
5.6.160.0030.04320.57
5.6.150.0200.06018.22
5.6.140.0170.07318.12
5.6.130.0200.06718.21
5.6.120.0070.08321.14
5.6.110.0100.06020.97
5.6.100.0100.03320.87
5.6.90.0070.04020.98
5.6.80.0030.07020.42
5.5.350.4130.04720.48
5.5.340.0030.08318.04
5.5.330.0130.07320.47
5.5.320.0630.06320.27
5.5.310.0270.07720.30
5.5.300.0100.07717.97
5.5.290.0030.04317.98
5.5.280.0100.05020.89
5.5.270.0070.07720.77
5.5.260.0030.05020.78
5.5.250.0070.09020.80
5.5.240.0230.06320.19
5.4.450.0000.05719.47
5.4.440.0030.06719.42
5.4.430.0070.07719.55
5.4.420.0000.04719.58
5.4.410.0070.03319.51
5.4.400.0030.04019.00
5.4.390.0030.07019.25
5.4.380.0000.06319.23
5.4.370.0170.04719.18
5.4.360.0100.07019.21
5.4.350.0070.07318.87
5.4.340.0070.07019.15
5.4.320.0030.04719.31
5.4.310.0070.04018.87
5.4.300.0030.05019.16
5.4.290.0070.07319.01
5.4.280.0000.05719.19
5.4.270.0030.07319.15
5.4.260.0030.07319.20
5.4.250.0030.06719.09
5.4.240.0030.07019.14
5.4.230.0070.07319.21
5.4.220.0030.04319.23
5.4.210.0030.07718.84
5.4.200.0000.07719.05
5.4.190.0100.06719.09
5.4.180.0030.06319.25
5.4.170.0070.07319.30
5.4.160.0030.08319.15
5.4.150.0100.06319.29
5.4.140.0000.07716.47
5.4.130.0000.07716.54
5.4.120.0000.05716.37
5.4.110.0030.04016.25
5.4.100.0000.03716.28
5.4.90.0100.05016.64
5.4.80.0000.07316.30
5.4.70.0070.06316.55
5.4.60.0030.05316.54
5.4.50.0030.06016.51
5.4.40.0030.07016.27
5.4.30.0030.07016.39
5.4.20.0000.05016.53
5.4.10.0030.06016.48
5.4.00.0000.04715.90
5.3.290.0070.06714.66
5.3.280.0030.04714.76
5.3.270.0030.05014.62
5.3.260.0030.08314.53
5.3.250.0000.06014.63
5.3.240.0070.04314.52
5.3.230.0030.04314.83
5.3.220.0030.06014.54
5.3.210.0000.08014.69
5.3.200.0030.07714.58
5.3.190.0000.05314.66
5.3.180.0100.06714.62
5.3.170.0030.07314.50
5.3.160.0030.07014.65
5.3.150.0070.07314.47
5.3.140.0070.06714.64
5.3.130.0070.06714.57
5.3.120.0000.05714.53
5.3.110.0170.03714.54
5.3.100.0070.06314.01
5.3.90.0030.06313.95
5.3.80.0100.05014.14
5.3.70.0030.05714.04
5.3.60.0030.06713.91
5.3.50.0030.05714.04
5.3.40.0100.05313.87
5.3.30.0000.06313.84
5.3.20.0070.07013.82
5.3.10.0030.04313.82
5.3.00.0030.05713.82
5.2.170.0030.06013.82
5.2.160.0030.06013.82
5.2.150.0030.06313.82
5.2.140.0030.05013.82
5.2.130.0070.06013.82
5.2.120.0000.05013.82
5.2.110.0030.03313.82
5.2.100.0070.05313.82
5.2.90.0030.06313.82
5.2.80.0030.04013.82
5.2.70.0030.06313.82
5.2.60.0070.03013.82
5.2.50.0030.06313.82
5.2.40.0070.05013.82
5.2.30.0000.04313.82
5.2.20.0030.04013.82
5.2.10.0030.06013.82
5.2.00.0030.05713.82
5.1.60.0000.03713.82
5.1.50.0100.04313.82
5.1.40.0030.05313.82
5.1.30.0030.05313.82
5.1.20.0100.05313.82
5.1.10.0030.05013.82
5.1.00.0030.03313.82
5.0.50.0030.04313.82
5.0.40.0030.04713.82
5.0.30.0030.06313.82
5.0.20.0030.04313.82
5.0.10.0030.03713.82
5.0.00.0000.06013.82
4.4.90.0000.03713.82
4.4.80.0030.02313.82
4.4.70.0000.03013.82
4.4.60.0000.03313.82
4.4.50.0000.02713.82
4.4.40.0030.04013.82
4.4.30.0000.04013.82
4.4.20.0070.03013.82
4.4.10.0000.02013.82
4.4.00.0000.05313.82
4.3.110.0030.03313.82
4.3.100.0070.02713.82
4.3.90.0000.03013.82
4.3.80.0030.05013.82
4.3.70.0000.03313.82
4.3.60.0030.02713.82
4.3.50.0070.02713.82
4.3.40.0000.05313.82
4.3.30.0030.03313.82
4.3.20.0030.03713.82
4.3.10.0030.03713.82
4.3.00.0000.03713.82

preferences:
45.07 ms | 401 KiB | 5 Q