3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { echo 'baz'; } } class Ex { public $a; public function __construct() { $this->a = Foo; } public function doIt() { ${$this->a}::bar(); } } $a = new Ex(); $a->doIt();

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.0120.00418.30
8.3.50.0110.00721.27
8.3.40.0070.00718.79
8.3.30.0000.01518.76
8.3.20.0080.00018.91
8.3.10.0090.00020.53
8.3.00.0090.00019.38
8.2.180.0060.00918.41
8.2.170.0150.00022.96
8.2.160.0160.00322.13
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0050.00319.70
8.2.110.0100.00720.53
8.2.100.0080.00417.84
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0050.00318.28
8.2.30.0040.00419.85
8.2.20.0000.00817.77
8.2.10.0080.00017.62
8.2.00.0080.00017.66
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00422.14
8.1.230.0040.00817.50
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.52
8.1.180.0090.00018.10
8.1.170.0060.00318.76
8.1.160.0050.00318.89
8.1.150.0000.00718.62
8.1.140.0020.00517.25
8.1.130.0000.00717.71
8.1.120.0000.00717.41
8.1.110.0030.00417.43
8.1.100.0000.00717.42
8.1.90.0040.00417.27
8.1.80.0040.00417.41
8.1.70.0070.00017.29
8.1.60.0000.00717.42
8.1.50.0000.00817.28
8.1.40.0000.00817.43
8.1.30.0000.00717.57
8.1.20.0040.00417.65
8.1.10.0040.00417.36
8.1.00.0080.00017.45
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0060.00018.36
8.0.270.0030.00317.13
8.0.260.0030.00318.72
8.0.250.0000.00716.99
8.0.240.0080.00017.02
8.0.230.0030.00316.96
8.0.220.0070.00016.98
8.0.210.0050.00316.84
8.0.200.0030.00316.92
8.0.190.0070.00016.98
8.0.180.0070.00416.88
8.0.170.0110.00016.94
8.0.160.0000.00716.96
8.0.150.0040.00416.94
8.0.140.0110.00016.89
8.0.130.0000.00513.36
8.0.120.0000.00716.82
8.0.110.0050.00316.74
8.0.100.0040.00416.84
8.0.90.0050.00317.00
8.0.80.0090.00616.83
8.0.70.0070.00016.91
8.0.60.0070.00017.06
8.0.50.0000.00716.84
8.0.30.0140.00516.93
8.0.20.0050.01517.40
8.0.10.0040.00417.00
8.0.00.0080.01016.89
7.4.330.0020.00213.43
7.4.320.0000.00616.41
7.4.300.0060.00016.59
7.4.290.0000.00816.52
7.4.280.0040.00416.49
7.4.270.0080.00016.55
7.4.260.0000.00613.30
7.4.250.0060.00316.40
7.4.240.0000.00716.50
7.4.230.0000.00716.34
7.4.220.0100.00716.46
7.4.210.0090.00716.63
7.4.200.0040.00416.61
7.4.190.0070.00016.60
7.4.160.0000.01516.32
7.4.150.0100.00717.40
7.4.140.0060.01217.12
7.4.130.0080.00916.59
7.4.120.0070.01016.42
7.4.110.0140.00316.55
7.4.100.0070.01116.47
7.4.90.0120.00616.47
7.4.80.0120.00419.03
7.4.70.0100.00616.50
7.4.60.0060.01216.45
7.4.50.0060.00316.36
7.4.40.0080.00822.27
7.4.30.0090.00616.56
7.4.00.0110.00515.04
7.3.330.0020.00213.19
7.3.320.0060.00013.21
7.3.310.0050.00316.19
7.3.300.0050.00316.39
7.3.290.0070.00716.39
7.3.280.0090.01016.33
7.3.270.0080.00817.40
7.3.260.0130.00818.24
7.3.250.0090.00916.37
7.3.240.0070.01016.57
7.3.230.0080.00816.39
7.3.210.0110.00616.35
7.3.200.0140.00319.39
7.3.190.0090.01216.41
7.3.180.0080.00816.58
7.3.170.0070.01016.52
7.3.160.0070.01416.49
7.3.120.0090.00714.82
7.3.110.0070.01114.91
7.3.100.0060.00314.64
7.3.90.0120.00314.78
7.3.80.0120.00314.70
7.3.70.0070.01014.91
7.3.60.0030.01014.87
7.3.50.0070.00314.89
7.3.40.0000.01614.84
7.3.30.0060.00314.70
7.3.20.0090.00316.68
7.3.10.0040.00716.46
7.3.00.0070.01016.33
7.2.330.0120.00516.78
7.2.320.0100.01416.81
7.2.310.0090.01016.48
7.2.300.0070.01016.86
7.2.290.0170.00016.59
7.2.250.0040.01515.20
7.2.240.0070.01015.09
7.2.230.0030.01015.32
7.2.220.0060.01014.96
7.2.210.0110.00715.17
7.2.200.0030.01014.95
7.2.190.0060.00614.99
7.2.180.0130.00014.81
7.2.170.0060.01014.88
7.2.60.0000.01316.77
7.2.00.0060.00619.46
7.1.330.0070.01015.88
7.1.320.0070.00715.32
7.1.310.0100.00715.64
7.1.300.0060.01015.74
7.1.290.0040.01115.54
7.1.280.0070.00715.55
7.1.270.0040.00415.41
7.1.260.0060.00915.61
7.1.200.0030.00715.75
7.1.100.0040.00817.93
7.1.70.0000.00716.93
7.1.60.0140.01019.40
7.1.50.0070.01416.95
7.1.00.0000.04022.41
7.0.200.0040.00716.52
7.0.140.0030.07322.09
7.0.60.0070.08320.07
7.0.50.0030.05017.86
7.0.40.0100.03720.04
7.0.30.0070.04020.16
7.0.20.0100.04320.39
7.0.10.0100.04320.18
7.0.00.0030.04320.10
5.6.280.0030.07020.78
5.6.210.0100.07320.48
5.6.200.0000.08718.25
5.6.190.0070.04020.55
5.6.180.0000.04320.47
5.6.170.0000.05020.49
5.6.160.0000.04320.41
5.6.150.0070.03720.17
5.6.140.0000.04720.32
5.6.130.0000.04320.43
5.6.120.0000.04320.17
5.6.110.0030.04720.39
5.6.100.0070.04720.17
5.6.90.0000.04720.17
5.6.80.0070.04319.54
5.6.70.0070.04319.78
5.6.60.0100.03719.78
5.6.50.0100.03719.55
5.6.40.0130.03019.59
5.6.30.0030.04019.88
5.6.20.0000.04319.69
5.6.10.0000.05019.54
5.6.00.0070.03719.58
5.5.350.0000.09020.45
5.5.340.0030.03717.95
5.5.330.0030.04320.37
5.5.320.0000.04320.21
5.5.310.0100.04720.43
5.5.300.0170.04020.03
5.5.290.0070.04020.23
5.5.280.0030.04020.16
5.5.270.0030.07720.12
5.5.260.0100.07320.20
5.5.250.0000.04319.95
5.5.240.0070.03719.38
5.5.230.0000.04319.34
5.5.220.0070.04019.41
5.5.210.0000.04319.70
5.5.200.0070.03719.46
5.5.190.0070.03719.32
5.5.180.0070.04019.59
5.5.160.0130.03019.52
5.5.150.0170.04019.48
5.5.140.0070.03719.48
5.5.130.0030.04319.48
5.5.120.0100.03319.59
5.5.110.0070.04019.54
5.5.100.0030.04019.58
5.5.90.0070.03719.45
5.5.80.0070.03719.38
5.5.70.0070.03719.37
5.5.60.0000.04019.21
5.5.50.0100.03019.21
5.5.40.0100.03319.32
5.5.30.0100.03019.42
5.5.20.0070.03719.38
5.5.10.0030.04019.42
5.5.00.0030.04019.41
5.4.450.0070.03719.18
5.4.440.0000.04319.57
5.4.430.0000.05019.38
5.4.420.0070.03719.44
5.4.410.0070.03719.05
5.4.400.0000.04018.93
5.4.390.0070.04719.24
5.4.380.0030.04719.12
5.4.370.0070.03319.20
5.4.360.0070.03319.24
5.4.350.0070.03319.00
5.4.340.0030.04019.12
5.4.320.0100.03019.10
5.4.310.0030.03719.20
5.4.300.0000.04019.00
5.4.290.0030.03719.11
5.4.280.0070.03318.96
5.4.270.0000.04018.85
5.4.260.0030.03718.92
5.4.250.0000.04019.14
5.4.240.0070.03319.24
5.4.230.0070.03319.07
5.4.220.0030.03719.07
5.4.210.0100.03019.14
5.4.200.0000.04019.14
5.4.190.0030.04019.14
5.4.180.0070.03319.18
5.4.170.0000.04319.17
5.4.160.0130.02719.09
5.4.150.0070.03319.13
5.4.140.0030.04016.43
5.4.130.0000.03716.54
5.4.120.0000.03716.54
5.4.110.0070.03016.32
5.4.100.0000.04316.72
5.4.90.0000.03716.39
5.4.80.0000.03716.43
5.4.70.0030.03316.42
5.4.60.0000.03716.43
5.4.50.0030.03316.31
5.4.40.0000.04316.34
5.4.30.0030.03316.49
5.4.20.0030.03316.23
5.4.10.0030.03316.26
5.4.00.0000.03715.95
5.3.290.0030.03714.84
5.3.280.0070.03314.61
5.3.270.0070.03314.50
5.3.260.0030.03714.60
5.3.250.0070.03314.62
5.3.240.0030.03714.60
5.3.230.0070.03314.49
5.3.220.0000.04014.57
5.3.210.0000.04014.56
5.3.200.0070.04014.60
5.3.190.0030.04014.51
5.3.180.0070.07014.45
5.3.170.0070.03314.45
5.3.160.0000.04014.45
5.3.150.0070.03714.56
5.3.140.0000.03714.55
5.3.130.0030.03714.56
5.3.120.0070.03314.56
5.3.110.0000.04014.62
5.3.100.0030.03314.04
5.3.90.0070.03014.04
5.3.80.0030.04014.00
5.3.70.0070.04714.07
5.3.60.0000.04714.04
5.3.50.0130.06313.98
5.3.40.0070.06713.96
5.3.30.0030.04013.88
5.3.20.0030.05713.58
5.3.10.0100.07313.81
5.3.00.0100.02713.57
5.2.170.0000.03311.04
5.2.160.0000.04011.12
5.2.150.0000.03011.12
5.2.140.0030.03011.18
5.2.130.0070.05011.12
5.2.120.0030.06311.03
5.2.110.0030.03311.05
5.2.100.0030.02711.10
5.2.90.0030.03010.99
5.2.80.0030.06311.15
5.2.70.0070.02711.17
5.2.60.0030.03010.98
5.2.50.0000.03011.07
5.2.40.0070.02311.00
5.2.30.0030.03010.93
5.2.20.0000.03011.12
5.2.10.0030.02710.92
5.2.00.0030.02710.77
5.1.60.0000.0279.97
5.1.50.0030.03710.07
5.1.40.0000.03310.00
5.1.30.0100.02010.38
5.1.20.0070.03010.26
5.1.10.0030.0379.98
5.1.00.0030.0479.98
5.0.50.0000.0438.69
5.0.40.0070.0178.42
5.0.30.0070.0338.34
5.0.20.0030.0208.34
5.0.10.0030.0178.34
5.0.00.0000.0478.34
4.4.90.0030.0208.34
4.4.80.0030.0138.34
4.4.70.0000.0178.34
4.4.60.0000.0208.34
4.4.50.0030.0138.34
4.4.40.0030.0238.34
4.4.30.0070.0238.34
4.4.20.0130.0238.34
4.4.10.0030.0208.34
4.4.00.0030.0238.34
4.3.110.0000.0238.34
4.3.100.0000.0178.34
4.3.90.0030.0138.34
4.3.80.0030.0538.34
4.3.70.0070.0178.34
4.3.60.0030.0338.34
4.3.50.0030.0308.34
4.3.40.0000.0378.34
4.3.30.0000.0178.34
4.3.20.0000.0178.34
4.3.10.0030.0378.34
4.3.00.0000.0338.34

preferences:
41.62 ms | 401 KiB | 5 Q