3v4l.org

run code in 500+ PHP versions simultaneously
<?php class First { protected static $test = 'foo'; protected static $test2 = 'foo'; public function test() { var_dump(self::$test, static::$test2); } } class Second extends First { protected static $test = 'bar'; protected static $test2 = 'bar'; } $second = new Second; $second->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.50
8.5.60.0040.00416.73
8.5.50.0020.00516.75
8.5.30.0110.00719.20
8.5.20.0080.00919.64
8.5.10.0110.00816.75
8.5.00.0090.01419.73
8.4.220.0050.00419.54
8.4.210.0070.00219.45
8.4.180.0130.01021.52
8.4.170.0120.01023.80
8.4.160.0110.01123.77
8.4.150.0070.00516.91
8.4.140.0140.00817.35
8.4.130.0120.00818.85
8.4.120.0080.00524.34
8.4.110.0100.00922.40
8.4.100.0140.00417.71
8.4.90.0110.01018.66
8.4.80.0130.00717.71
8.4.70.0120.00917.89
8.4.60.0080.01218.95
8.4.50.0180.00218.33
8.4.40.0150.00617.71
8.4.30.0060.01319.32
8.4.20.0160.00319.25
8.4.10.0030.00620.50
8.3.310.0090.00918.07
8.3.300.0100.01120.82
8.3.290.0130.00920.22
8.3.280.0140.00720.13
8.3.270.0100.00916.52
8.3.260.0080.00216.29
8.3.250.0140.00518.83
8.3.240.0150.00416.88
8.3.230.0120.00716.62
8.3.220.0050.00318.89
8.3.210.0110.00616.56
8.3.200.0070.00216.33
8.3.190.0060.00217.05
8.3.180.0100.01016.95
8.3.170.0110.00719.16
8.3.160.0140.00417.20
8.3.150.0040.00418.21
8.3.140.0090.00017.22
8.3.130.0180.00318.29
8.3.120.0090.00018.89
8.3.110.0030.00620.94
8.3.100.0120.00024.06
8.3.90.0090.00926.77
8.3.80.0090.00317.97
8.3.70.0170.00316.38
8.3.60.0070.01118.55
8.3.50.0080.00818.08
8.3.40.0130.00918.71
8.3.30.0040.01118.71
8.3.20.0040.00419.06
8.3.10.0050.00321.80
8.3.00.0050.00317.93
8.2.310.0120.00917.90
8.2.300.0070.01317.95
8.2.290.0080.00520.51
8.2.280.0060.00318.46
8.2.270.0110.00717.26
8.2.260.0080.00016.63
8.2.250.0140.00418.43
8.2.240.0030.00517.09
8.2.230.0000.00722.58
8.2.220.0070.00337.54
8.2.210.0030.01626.77
8.2.200.0060.00316.63
8.2.190.0090.00916.63
8.2.180.0090.00916.36
8.2.170.0110.00722.96
8.2.160.0070.00719.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00819.64
8.2.120.0080.00026.35
8.2.110.0060.00320.90
8.2.100.0080.00417.71
8.2.90.0040.00417.78
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0040.00417.80
8.2.50.0030.00618.10
8.2.40.0000.00819.17
8.2.30.0030.00319.43
8.2.20.0000.00717.88
8.2.10.0040.00417.99
8.2.00.0000.00819.25
8.1.340.0080.00417.53
8.1.330.0100.00921.85
8.1.320.0100.00815.98
8.1.310.0070.01118.30
8.1.300.0000.00817.65
8.1.290.0090.00030.84
8.1.280.0060.01525.92
8.1.270.0000.00723.79
8.1.260.0050.00226.35
8.1.250.0030.00528.09
8.1.240.0060.00323.75
8.1.230.0070.00721.03
8.1.220.0000.00917.74
8.1.210.0040.00419.15
8.1.200.0000.00917.23
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0030.00618.50
8.1.160.0040.00418.84
8.1.150.0030.00318.75
8.1.140.0050.00317.77
8.1.130.0000.00719.01
8.1.120.0040.00417.42
8.1.110.0060.00317.39
8.1.100.0080.00017.45
8.1.90.0000.00817.44
8.1.80.0040.00417.28
8.1.70.0040.00417.46
8.1.60.0060.00317.62
8.1.50.0060.00317.44
8.1.40.0000.00817.57
8.1.30.0040.00417.66
8.1.20.0040.00417.57
8.1.10.0000.00717.45
8.1.00.0080.00017.42
8.0.300.0000.00819.60
8.0.290.0040.00416.75
8.0.280.0000.00718.27
8.0.270.0030.00317.24
8.0.260.0030.00317.19
8.0.250.0030.00316.91
8.0.240.0030.00516.90
8.0.230.0030.00316.89
8.0.220.0030.00616.71
8.0.210.0030.00316.70
8.0.200.0040.00416.95
8.0.190.0050.00216.88
8.0.180.0000.00716.88
8.0.170.0030.00616.85
8.0.160.0030.00616.86
8.0.150.0080.00016.84
8.0.140.0030.00516.82
8.0.130.0000.00513.21
8.0.120.0000.00716.76
8.0.110.0000.00816.84
8.0.100.0070.00016.88
8.0.90.0040.00416.85
8.0.80.0110.00616.80
8.0.70.0040.00416.79
8.0.60.0000.00816.79
8.0.50.0000.00716.86
8.0.30.0090.01117.11
8.0.20.0100.00817.40
8.0.10.0050.00316.80
8.0.00.0120.00616.55
7.4.330.0040.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.49
7.4.290.0000.00716.59
7.4.280.0030.00616.51
7.4.270.0000.00716.60
7.4.260.0000.00716.61
7.4.250.0030.00316.57
7.4.240.0000.00716.53
7.4.230.0040.00416.54
7.4.220.0050.00216.40
7.4.210.0060.00916.64
7.4.200.0070.00016.48
7.4.160.0120.00616.50
7.4.140.0120.00617.86
7.4.130.0120.00916.49
7.4.120.0080.01116.52
7.4.110.0060.01016.34
7.4.100.0110.00516.64
7.4.90.0110.00616.55
7.4.80.0120.01519.39
7.4.70.0100.01316.59
7.4.60.0100.00716.43
7.4.50.0060.00616.45
7.4.40.0100.00716.64
7.4.00.0140.00315.04
7.3.330.0050.00013.32
7.3.320.0020.00213.12
7.3.310.0030.00316.15
7.3.300.0000.00716.25
7.3.290.0030.00316.19
7.3.280.0060.01116.29
7.3.260.0090.00916.44
7.3.240.0080.00916.43
7.3.230.0150.00316.30
7.3.210.0060.01216.25
7.3.200.0070.01016.29
7.3.190.0030.01316.55
7.3.180.0040.01216.30
7.3.170.0140.00316.31
7.3.160.0070.01516.50
7.2.330.0150.00316.64
7.2.320.0100.01016.27
7.2.310.0090.01516.60
7.2.300.0080.00816.77
7.2.290.0130.00616.66
7.2.60.0070.00716.77
7.2.40.0690.00817.92
7.2.30.0670.00918.10
7.2.20.0700.00918.16
7.2.10.0670.00517.73
7.2.00.0550.00918.06
7.1.200.0060.00815.50
7.1.160.1250.01016.70
7.1.150.0630.01016.51
7.1.140.0890.00916.77
7.1.130.0740.01116.91
7.1.120.0600.00716.70
7.1.110.0670.00616.00
7.1.100.0710.00816.16
7.1.90.0760.00516.00
7.1.80.0700.00516.15
7.1.70.0700.01015.22
7.1.60.0900.01133.22
7.1.50.0930.01332.60
7.1.40.0860.01132.26
7.1.30.0820.01232.33
7.1.20.0870.01132.56
7.1.10.0750.00914.71
7.1.00.0590.00814.81

preferences:
32.92 ms | 1424 KiB | 5 Q