3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { static $bar = 'baz'; } class FortyTwo extends Foo { function test() { var_dump(self::$bar); } } (new FortyTwo)->test();

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.5.70.0100.00716.79
8.5.60.0100.00816.70
8.5.50.0110.00816.55
8.5.30.0070.00819.28
8.5.20.0100.00819.61
8.5.10.0140.00416.46
8.5.00.0140.01319.91
8.4.220.0100.00821.33
8.4.210.0130.00819.55
8.4.180.0160.00619.42
8.4.170.0150.00620.59
8.4.160.0150.00823.84
8.4.150.0080.00417.81
8.4.140.0140.01117.65
8.4.130.0060.00417.66
8.4.120.0090.00820.52
8.4.110.0040.00525.85
8.4.100.0140.00617.71
8.4.90.0140.00620.59
8.4.80.0100.00618.73
8.4.70.0040.00418.86
8.4.60.0090.01218.88
8.4.50.0100.01018.46
8.4.40.0160.00317.49
8.4.30.0120.00817.68
8.4.20.0120.00619.53
8.4.10.0030.00620.53
8.3.310.0110.00918.45
8.3.300.0090.01118.18
8.3.290.0120.00720.95
8.3.280.0130.00818.31
8.3.270.0140.00516.49
8.3.260.0090.01116.53
8.3.250.0120.00718.77
8.3.240.0100.00616.41
8.3.230.0110.00816.59
8.3.220.0090.00418.68
8.3.210.0040.00418.27
8.3.200.0030.00616.48
8.3.190.0120.00617.21
8.3.180.0070.00318.73
8.3.170.0110.00722.54
8.3.160.0110.00717.14
8.3.150.0110.00417.20
8.3.140.0040.00417.04
8.3.130.0030.00618.66
8.3.120.0030.00520.67
8.3.110.0080.00016.38
8.3.100.0030.00724.06
8.3.90.0080.00026.77
8.3.80.0040.00718.31
8.3.70.0140.00716.50
8.3.60.0110.00418.18
8.3.50.0100.00318.12
8.3.40.0030.01718.77
8.3.30.0100.00718.42
8.3.20.0040.00419.07
8.3.10.0080.00021.82
8.3.00.0040.00417.76
8.2.310.0110.00817.89
8.2.300.0140.00620.40
8.2.290.0100.00916.49
8.2.280.0110.00420.04
8.2.270.0130.00617.03
8.2.260.0000.00916.36
8.2.250.0000.00718.36
8.2.240.0040.00417.23
8.2.230.0060.00320.94
8.2.220.0130.00337.54
8.2.210.0100.00026.77
8.2.200.0060.00316.75
8.2.190.0150.00016.63
8.2.180.0150.00016.32
8.2.170.0120.00322.96
8.2.160.0080.00619.08
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00620.89
8.2.110.0070.00321.07
8.2.100.0040.00817.91
8.2.90.0040.00418.16
8.2.80.0040.00418.09
8.2.70.0000.00917.63
8.2.60.0050.00317.63
8.2.50.0050.00217.55
8.2.40.0050.00519.23
8.2.30.0070.00019.42
8.2.20.0040.00417.94
8.2.10.0040.00417.89
8.2.00.0030.00319.36
8.1.340.0150.00717.46
8.1.330.0140.00615.87
8.1.320.0150.00616.14
8.1.310.0040.00418.16
8.1.300.0040.00418.53
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0030.00623.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00320.64
8.1.230.0110.00020.88
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0080.00018.95
8.1.160.0000.00718.78
8.1.150.0040.00418.79
8.1.140.0040.00417.69
8.1.130.0050.00318.89
8.1.120.0000.00917.29
8.1.110.0030.00617.30
8.1.100.0000.00717.33
8.1.90.0050.00217.36
8.1.80.0030.00517.20
8.1.70.0030.00317.30
8.1.60.0040.00417.53
8.1.50.0080.00017.40
8.1.40.0040.00417.50
8.1.30.0030.00517.47
8.1.20.0070.00017.60
8.1.10.0070.00017.48
8.1.00.0000.00817.36
8.0.300.0000.00719.98
8.0.290.0030.00716.58
8.0.280.0000.00818.38
8.0.270.0090.00016.79
8.0.260.0030.00317.19
8.0.250.0030.00316.92
8.0.240.0070.00016.79
8.0.230.0070.00016.77
8.0.220.0070.00316.62
8.0.210.0030.00316.78
8.0.200.0060.00016.68
8.0.190.0030.00516.83
8.0.180.0000.00716.74
8.0.170.0040.00416.72
8.0.160.0000.00916.83
8.0.150.0030.00316.67
8.0.140.0070.00016.67
8.0.130.0060.00013.18
8.0.120.0000.00716.74
8.0.110.0030.00516.66
8.0.100.0070.00016.53
8.0.90.0050.00216.77
8.0.80.0110.00516.77
8.0.70.0040.00416.77
8.0.60.0040.00416.64
8.0.50.0040.00416.60
8.0.30.0050.01116.98
8.0.20.0070.01117.40
8.0.10.0030.00516.82
8.0.00.0080.00916.66
7.4.330.0000.00415.55
7.4.320.0000.00616.50
7.4.300.0000.00716.32
7.4.290.0000.00716.52
7.4.280.0040.00416.42
7.4.270.0030.00316.42
7.4.260.0030.00316.55
7.4.250.0030.00316.44
7.4.240.0040.00416.51
7.4.230.0000.00716.45
7.4.220.0080.00016.36
7.4.210.0080.01016.46
7.4.200.0000.00716.44
7.4.160.0070.01016.43
7.4.140.0090.00917.86
7.4.130.0070.01116.58
7.4.120.0120.00916.48
7.4.110.0000.01616.55
7.4.100.0080.01316.35
7.4.90.0140.00316.48
7.4.80.0070.01619.39
7.4.70.0090.01216.23
7.4.60.0060.01016.56
7.4.50.0110.00316.39
7.4.40.0140.01016.49
7.4.00.0070.01114.94
7.3.330.0050.00013.21
7.3.320.0000.00513.26
7.3.310.0000.00716.21
7.3.300.0000.00716.22
7.3.290.0070.00016.31
7.3.280.0060.00916.28
7.3.260.0090.01016.30
7.3.240.0100.00916.34
7.3.230.0100.01316.48
7.3.210.0160.00716.23
7.3.200.0100.00716.55
7.3.190.0170.00016.24
7.3.180.0100.00716.31
7.3.170.0110.00616.43
7.3.160.0040.01116.35
7.2.330.0120.00616.46
7.2.320.0070.01416.54
7.2.310.0180.00416.56
7.2.300.0100.00716.30
7.2.290.0100.01316.47
7.2.60.0040.01116.78
7.2.40.1440.01118.09
7.2.30.0690.00918.10
7.2.20.1110.01117.95
7.2.10.1000.01217.64
7.2.00.0680.00717.73
7.1.200.0040.00815.76
7.1.160.0310.01316.61
7.1.150.0090.01416.69
7.1.140.1110.01116.94
7.1.130.0700.00516.56
7.1.120.0720.00816.68
7.1.110.0760.00616.13
7.1.100.0750.00716.15
7.1.90.0580.00916.21
7.1.80.0620.01016.10
7.1.70.0130.01215.34
7.1.60.1220.01033.12
7.1.50.0260.01032.83
7.1.40.0220.01332.24
7.1.30.0250.01032.43
7.1.20.1340.00832.81
7.1.10.0100.00914.56
7.1.00.1040.00814.65

preferences:
61.56 ms | 1414 KiB | 5 Q