3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() : self { return self; } } class Foo2 extends Foo {} var_dump(Foo2::bar());

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.0140.00716.48
8.3.50.0070.00717.98
8.3.40.0150.00018.70
8.3.30.0110.00418.84
8.3.20.0040.00420.07
8.3.10.0080.00020.48
8.3.00.0080.00020.52
8.2.180.0080.01116.50
8.2.170.0100.00722.96
8.2.160.0160.00320.35
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00419.36
8.2.120.0080.00026.35
8.2.110.0070.00322.20
8.2.100.0040.00717.91
8.2.90.0080.00017.75
8.2.80.0090.00017.97
8.2.70.0040.00417.92
8.2.60.0060.00318.04
8.2.50.0040.00418.10
8.2.40.0040.00420.36
8.2.30.0000.00719.43
8.2.20.0000.00717.74
8.2.10.0070.00017.95
8.2.00.0000.00717.95
8.1.270.0040.00423.77
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0070.00322.47
8.1.230.0080.00320.87
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0040.00420.89
8.1.150.0040.00418.86
8.1.140.0080.00019.51
8.1.130.0030.00317.64
8.1.120.0000.00717.38
8.1.110.0070.00017.41
8.1.100.0000.00817.30
8.1.90.0030.00517.27
8.1.80.0040.00417.41
8.1.70.0030.00317.45
8.1.60.0000.00817.49
8.1.50.0030.00617.38
8.1.40.0030.00517.41
8.1.30.0030.00617.51
8.1.20.0070.00017.55
8.1.10.0000.00717.44
8.1.00.0000.00817.47
8.0.300.0030.00619.82
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00317.29
8.0.260.0000.00617.31
8.0.250.0000.00717.05
8.0.240.0000.00816.97
8.0.230.0040.00417.03
8.0.220.0000.00816.95
8.0.210.0000.00816.94
8.0.200.0030.00316.98
8.0.190.0060.00316.95
8.0.180.0030.00616.89
8.0.170.0080.00017.02
8.0.160.0030.00616.98
8.0.150.0030.00316.97
8.0.140.0000.00716.79
8.0.130.0030.00313.40
8.0.120.0030.00516.90
8.0.110.0030.00616.95
8.0.100.0070.00016.82
8.0.90.0000.00816.76
8.0.80.0030.01417.00
8.0.70.0050.00217.00
8.0.60.0050.00216.99
8.0.50.0000.00716.93
8.0.30.0070.01217.00
8.0.20.0120.00817.40
8.0.10.0040.00417.03
8.0.00.0130.01016.83
7.4.330.0000.00515.08
7.4.320.0000.00616.53
7.4.300.0080.00016.32
7.4.290.0070.00016.44
7.4.280.0030.00516.43
7.4.270.0000.00716.43
7.4.260.0000.00716.52
7.4.250.0000.00816.51
7.4.240.0030.00316.45
7.4.230.0030.00316.62
7.4.220.0070.01016.40
7.4.210.0070.00816.49
7.4.200.0000.00716.27
7.4.160.0030.01316.48
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0110.00616.54
7.4.120.0090.00916.42
7.4.110.0080.00816.48
7.4.100.0160.00616.60
7.4.90.0040.01316.79
7.4.80.0130.00819.39
7.4.70.0030.01416.56
7.4.60.0070.01116.59
7.4.50.0000.01616.56
7.4.40.0060.00916.26
7.4.30.0040.01216.74
7.4.00.0000.01414.72
7.3.330.0020.00813.22
7.3.320.0050.00013.29
7.3.310.0030.00316.35
7.3.300.0000.00716.32
7.3.290.0000.00716.28
7.3.280.0110.00816.32
7.3.270.0100.01417.40
7.3.260.0090.01116.36
7.3.250.0080.00916.40
7.3.240.0110.01116.42
7.3.230.0090.00616.39
7.3.210.0100.00616.48
7.3.200.0060.01016.22
7.3.190.0110.00816.50
7.3.180.0090.00616.27
7.3.170.0080.01516.38
7.3.160.0070.01116.52
7.2.330.0130.01016.56
7.2.320.0100.01316.50
7.2.310.0100.00616.52
7.2.300.0090.00916.59
7.2.290.0060.00916.65
7.2.110.0040.01216.39
7.2.60.0070.00716.81
7.2.00.0060.00919.46
7.1.200.0050.00315.53
7.1.100.0080.00318.07
7.1.70.0000.01017.13
7.1.60.0070.01719.27
7.1.50.0060.00616.96
7.1.00.0100.07022.35
7.0.200.0100.00716.54
7.0.60.0100.04321.66
7.0.50.0030.04717.88
7.0.40.0030.09020.41
7.0.30.0200.09320.26
7.0.20.0200.04020.20
7.0.10.0130.08020.33
7.0.00.0100.05320.23
5.6.280.0030.07320.78
5.6.210.0070.07020.55
5.6.200.0070.06718.27
5.6.190.0000.04720.39
5.6.180.0130.05020.64
5.6.170.0270.04020.62
5.6.160.0070.04320.55
5.6.150.0030.04318.19
5.6.140.0030.06718.14
5.6.130.0030.04718.20
5.6.120.0030.08720.99
5.6.110.0130.07321.04
5.6.100.0130.07720.97
5.6.90.0030.04020.95
5.6.80.0100.07020.29
5.5.350.4230.03720.32
5.5.340.0070.04018.01
5.5.330.0070.05020.43
5.5.320.0270.05720.27
5.5.310.0270.06020.29
5.5.300.0030.04318.03
5.5.290.0070.05717.95
5.5.280.0070.07020.80
5.5.270.0100.07020.76
5.5.260.0100.04720.68
5.5.250.0070.03720.50
5.5.240.0100.08020.04

preferences:
64.7 ms | 400 KiB | 5 Q