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.0040.01218.52
8.3.50.0120.00721.14
8.3.40.0110.00418.88
8.3.30.0100.00618.92
8.3.20.0040.00420.34
8.3.10.0080.00022.10
8.3.00.0040.00422.38
8.2.180.0070.01018.41
8.2.170.0110.00422.96
8.2.160.0030.01019.21
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00019.65
8.2.110.0040.00422.20
8.2.100.0000.01017.91
8.2.90.0060.00319.05
8.2.80.0040.00417.97
8.2.70.0040.00417.61
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0080.00017.87
8.2.20.0070.00017.59
8.2.10.0000.00817.54
8.2.00.0060.00317.49
8.1.280.0120.00925.92
8.1.270.0060.00318.57
8.1.260.0020.00526.35
8.1.250.0070.00728.09
8.1.240.0060.00323.91
8.1.230.0060.00619.18
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00617.13
8.1.190.0000.00817.66
8.1.180.0050.00320.48
8.1.170.0080.00018.31
8.1.160.0000.00722.13
8.1.150.0040.00418.57
8.1.140.0040.00417.34
8.1.130.0070.00017.77
8.1.120.0020.00517.42
8.1.110.0050.00317.29
8.1.100.0030.00317.37
8.1.90.0000.00817.37
8.1.80.0070.00017.45
8.1.70.0070.00017.29
8.1.60.0030.00517.63
8.1.50.0030.00517.52
8.1.40.0040.00417.52
8.1.30.0040.00417.60
8.1.20.0080.00017.56
8.1.10.0040.00417.55
8.1.00.0080.00317.44
8.0.300.0080.00018.77
8.0.290.0030.00517.04
8.0.280.0070.00018.36
8.0.270.0030.00317.25
8.0.260.0040.00416.80
8.0.250.0000.00616.90
8.0.240.0050.00516.86
8.0.230.0000.00716.81
8.0.220.0030.00316.69
8.0.210.0000.00716.76
8.0.200.0000.00616.78
8.0.190.0040.00416.89
8.0.180.0070.00016.86
8.0.170.0030.00616.88
8.0.160.0040.00416.85
8.0.150.0000.00716.81
8.0.140.0070.00016.79
8.0.130.0000.00613.26
8.0.120.0070.00016.80
8.0.110.0040.00416.87
8.0.100.0000.00716.89
8.0.90.0000.00716.87
8.0.80.0030.01716.88
8.0.70.0000.00716.68
8.0.60.0040.00416.63
8.0.50.0030.00616.70
8.0.30.0150.00517.10
8.0.20.0110.00717.40
8.0.10.0000.00716.97
8.0.00.0120.00816.68
7.4.330.0020.00215.00
7.4.320.0030.00316.44
7.4.300.0000.00616.43
7.4.290.0090.00016.46
7.4.280.0050.00316.35
7.4.270.0000.00716.55
7.4.260.0000.00816.58
7.4.250.0030.00516.50
7.4.240.0030.00316.52
7.4.230.0040.00416.70
7.4.220.0000.01616.66
7.4.210.0090.01016.53
7.4.200.0050.00216.64
7.4.190.0000.00816.64
7.4.160.0070.01016.60
7.4.150.0140.00317.40
7.4.140.0120.00617.86
7.4.130.0110.00816.50
7.4.120.0110.00616.56
7.4.110.0070.01316.63
7.4.100.0150.00416.62
7.4.90.0060.01616.39
7.4.80.0060.01619.39
7.4.70.0150.00316.43
7.4.60.0090.00916.71
7.4.50.0040.00416.39
7.4.40.0060.00922.77
7.4.30.0140.00716.56
7.4.00.0070.00715.11
7.3.330.0030.00313.33
7.3.320.0000.00513.25
7.3.310.0000.00716.30
7.3.300.0060.00016.36
7.3.290.0060.00916.24
7.3.280.0070.01116.30
7.3.270.0100.00717.40
7.3.260.0090.00916.33
7.3.250.0120.00616.36
7.3.240.0130.01016.45
7.3.230.0070.01016.50
7.3.210.0080.00816.40
7.3.200.0080.00819.39
7.3.190.0090.00916.34
7.3.180.0040.01116.58
7.3.170.0050.01016.45
7.3.160.0030.01116.30
7.3.120.0080.00814.76
7.2.330.0140.00316.84
7.2.320.0130.00716.87
7.2.310.0030.01616.79
7.2.300.0100.01016.41
7.2.290.0030.01316.82
7.2.60.0030.01317.02
7.2.00.0030.00919.16
7.1.200.0030.01015.66
7.1.100.0080.00317.84
7.1.70.0000.00917.11
7.1.60.0130.01019.82
7.1.50.0070.00716.91
7.1.00.0000.03722.52
7.0.200.0110.01114.96
7.0.140.0030.07322.15
7.0.110.0130.07719.98
7.0.100.0170.06020.08
7.0.90.0230.07319.98
7.0.80.0130.07719.84
7.0.70.0170.07719.90
7.0.60.0170.04320.08
7.0.50.0130.07319.91
7.0.40.0130.07019.66
7.0.30.0070.08019.82
7.0.20.0170.05319.65
7.0.10.0200.05319.85
7.0.00.0130.07019.87
5.6.280.0070.07021.01
5.6.260.0170.06320.66
5.6.250.0130.07720.66
5.6.240.0130.07320.56
5.6.230.0070.08020.55
5.6.220.0030.07720.68
5.6.210.0070.08020.69
5.6.200.0100.05020.64
5.6.190.0100.05720.83
5.6.180.0130.07320.53
5.6.170.0070.06320.73
5.6.160.0070.05720.63
5.6.150.0000.07020.65
5.6.140.0070.08320.63
5.6.130.0030.07720.63
5.6.120.0100.08320.59
5.6.110.0070.05320.69
5.6.100.0030.05320.65
5.6.90.0130.07020.62
5.6.80.0000.08319.94
5.6.70.0070.07719.97
5.6.60.0070.07720.03
5.6.50.0100.05019.94
5.6.40.0100.07720.06
5.6.30.0270.06319.96
5.6.20.0070.04719.83
5.6.10.0100.07319.98
5.6.00.0030.05020.21
5.5.380.0030.08017.57
5.5.370.0100.07317.70
5.5.360.0030.05717.71
5.5.350.0030.08317.50
5.5.340.0100.09018.11
5.5.330.0170.04318.10
5.5.320.0070.06717.91
5.5.310.0000.05018.13
5.5.300.0030.07318.10
5.5.290.0070.07718.09
5.5.280.0070.07018.22
5.5.270.0070.07717.82
5.5.260.0030.08018.21
5.5.250.0100.07717.91
5.5.240.0130.06017.32
5.5.230.0030.05717.33
5.5.220.0100.07017.48
5.5.210.0100.04017.29
5.5.200.0130.05017.41
5.5.190.0100.07017.58
5.5.180.0030.08017.40
5.5.160.0100.07317.18
5.5.150.0070.07717.45
5.5.140.0030.07717.32
5.5.130.0100.05717.57
5.5.120.0100.03317.28
5.5.110.0000.04717.44
5.5.100.0070.07017.35
5.5.90.0030.03717.38
5.5.80.0070.03717.08
5.5.70.0000.06017.15
5.5.60.0070.03717.16
5.5.50.0070.04017.17
5.5.40.0130.06017.48
5.5.30.0070.03317.32
5.5.20.0070.03317.29
5.5.10.0030.03317.15
5.5.00.0070.05317.14
5.4.450.0100.07319.47
5.4.440.0070.07719.47
5.4.430.0130.07319.33
5.4.420.0100.07319.64
5.4.410.0070.07719.16
5.4.400.0070.06019.25
5.4.390.0070.07319.14
5.4.380.0100.04319.23
5.4.370.0070.07719.23
5.4.360.0000.04319.00
5.4.350.0070.05319.01
5.4.340.0070.07719.00
5.4.320.0070.05718.95
5.4.310.0030.06319.34
5.4.300.0130.07019.00
5.4.290.0030.04019.00
5.4.280.0070.07319.00
5.4.270.0000.04719.02
5.4.260.0130.06318.98
5.4.250.0070.03719.22
5.4.240.0070.05719.33
5.4.230.0100.06019.02
5.4.220.0100.03718.98
5.4.210.0000.04718.99
5.4.200.0200.05718.99
5.4.190.0030.06019.16
5.4.180.0000.03719.13
5.4.170.0030.04018.98
5.4.160.0000.03718.93
5.4.150.0100.03319.21
5.4.140.0000.03716.69
5.4.130.0070.03016.56
5.4.120.0000.07316.60
5.4.110.0030.03716.37
5.4.100.0070.04016.37
5.4.90.0000.04016.37
5.4.80.0030.07316.44
5.4.70.0170.05716.45
5.4.60.0170.06316.49
5.4.50.0030.07316.44
5.4.40.0030.04016.44
5.4.30.0030.03016.18
5.4.20.0030.03716.54
5.4.10.0100.03016.23
5.4.00.0000.04016.07
5.3.290.0070.07714.77
5.3.280.0070.04714.61
5.3.270.0030.04714.47
5.3.260.0100.04014.73
5.3.250.0130.05314.57
5.3.240.0030.07014.68
5.3.230.0000.04014.61
5.3.220.0000.03714.61
5.3.210.0070.03014.70
5.3.200.0070.05314.59
5.3.190.0030.06714.61
5.3.180.0030.07314.70
5.3.170.0070.07314.65
5.3.160.0000.08014.52
5.3.150.0070.07314.56
5.3.140.0030.07714.57
5.3.130.0030.04014.41
5.3.120.0030.03714.68
5.3.110.0030.03714.70
5.3.100.0030.03714.13
5.3.90.0000.04014.01
5.3.80.0100.02713.98
5.3.70.0000.04014.03
5.3.60.0000.03714.03
5.3.50.0130.02714.07
5.3.40.0100.02713.96
5.3.30.0070.03313.91
5.3.20.0000.03713.75
5.3.10.0070.02713.65
5.3.00.0030.04013.87
5.2.170.0130.02011.91
5.2.160.0000.03311.91
5.2.150.0030.02711.91
5.2.140.0030.02711.91
5.2.130.0100.01711.91
5.2.120.0030.02311.91
5.2.110.0030.03311.91
5.2.100.0030.05011.91
5.2.90.0030.05711.91
5.2.80.0030.06711.91
5.2.70.0030.02711.91
5.2.60.0000.02711.91
5.2.50.0070.04711.91
5.2.40.0000.03011.91
5.2.30.0000.03011.91
5.2.20.0030.05011.91
5.2.10.0030.02711.91
5.2.00.0030.02711.91
5.1.60.0000.02011.91
5.1.50.0070.01711.91
5.1.40.0000.02711.91
5.1.30.0030.02311.91
5.1.20.0030.02011.91
5.1.10.0030.02311.91
5.1.00.0000.02711.91
5.0.50.0000.02011.91
5.0.40.0030.01311.91
5.0.30.0100.02311.91
5.0.20.0070.01311.91
5.0.10.0030.01711.91
5.0.00.0000.02711.91
4.4.90.0070.03311.91
4.4.80.0030.01311.91
4.4.70.0030.01311.91
4.4.60.0000.01711.91
4.4.50.0000.01711.91
4.4.40.0000.02011.91
4.4.30.0000.01711.91
4.4.20.0000.01311.91
4.4.10.0000.01311.91
4.4.00.0000.02711.91
4.3.110.0000.01311.91
4.3.100.0030.01011.91
4.3.90.0000.01311.91
4.3.80.0000.02311.91
4.3.70.0000.01711.91
4.3.60.0030.01011.91
4.3.50.0000.01711.91
4.3.40.0000.02311.91
4.3.30.0030.01311.91
4.3.20.0070.01011.91
4.3.10.0030.01311.91
4.3.00.0000.01311.91

preferences:
46.18 ms | 401 KiB | 5 Q