3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Orig {}; class Override {}; $instance = new Orig; function test() { global $instance; $newInstance = new Override; $instance=$newInstance; check(); } function check() { global $instance; var_dump($instance); } 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.4.20.0060.01320.56
8.4.10.0160.00317.78
8.3.150.0100.00720.53
8.3.140.0030.00617.21
8.3.130.0040.00418.57
8.3.120.0100.01018.53
8.3.110.0040.00416.74
8.3.100.0100.01016.79
8.3.90.0080.00018.40
8.3.80.0030.00619.36
8.3.70.0140.00716.75
8.3.60.0140.00718.43
8.3.50.0050.00723.71
8.3.40.0090.00618.53
8.3.30.0080.00818.57
8.3.20.0040.00421.95
8.3.10.0080.00022.05
8.3.00.0040.00423.48
8.2.270.0090.00917.01
8.2.260.0080.00016.63
8.2.250.0040.00416.92
8.2.240.0060.01218.75
8.2.230.0070.01020.94
8.2.220.0030.01324.06
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0060.01216.58
8.2.180.0030.01416.63
8.2.170.0150.00022.96
8.2.160.0160.00020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00426.16
8.2.110.0070.00321.04
8.2.100.0030.00917.78
8.2.90.0000.00817.64
8.2.80.0030.00619.03
8.2.70.0040.00417.23
8.2.60.0040.00417.38
8.2.50.0050.00317.55
8.2.40.0000.00819.35
8.2.30.0050.00219.31
8.2.20.0030.00517.89
8.2.10.0040.00419.14
8.2.00.0040.00419.23
8.1.310.0150.00318.44
8.1.300.0080.00018.48
8.1.290.0030.00630.84
8.1.280.0130.00325.92
8.1.270.0070.00022.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00718.84
8.1.230.0040.00820.95
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0040.00418.75
8.1.150.0000.00818.93
8.1.140.0040.00420.71
8.1.130.0000.00717.38
8.1.120.0070.00317.28
8.1.110.0040.00417.36
8.1.100.0000.00717.38
8.1.90.0000.00817.45
8.1.80.0050.00317.28
8.1.70.0060.00317.32
8.1.60.0030.00517.50
8.1.50.0040.00417.49
8.1.40.0050.00317.40
8.1.30.0040.00417.58
8.1.20.0040.00417.55
8.1.10.0040.00417.40
8.1.00.0050.00317.42
8.0.300.0060.00319.91
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0050.00317.84
8.0.260.0000.00716.77
8.0.250.0000.00716.86
8.0.240.0070.00016.85
8.0.230.0030.00316.89
8.0.220.0070.00016.70
8.0.210.0030.00316.69
8.0.200.0030.00316.80
8.0.190.0030.00316.87
8.0.180.0040.00416.73
8.0.170.0080.00016.87
8.0.160.0000.00816.80
8.0.150.0040.00416.75
8.0.140.0000.00716.84
8.0.130.0000.00613.22
8.0.120.0070.00016.80
8.0.110.0000.00816.83
8.0.100.0000.00716.62
8.0.90.0050.00316.79
8.0.80.0070.00716.86
8.0.70.0080.00016.64
8.0.60.0040.00416.73
8.0.50.0030.00316.71
8.0.30.0130.00617.09
8.0.20.0110.00916.71
8.0.10.0000.00817.02
8.0.00.0000.01916.78
7.4.330.0050.00016.89
7.4.320.0040.00416.62
7.4.300.0060.00016.55
7.4.290.0070.00016.48
7.4.280.0070.00016.54
7.4.270.0030.00616.50
7.4.260.0000.00513.24
7.4.250.0050.00316.39
7.4.240.0030.00416.53
7.4.230.0000.00716.68
7.4.220.0030.00416.46
7.4.210.0110.00516.53
7.4.200.0000.00716.57
7.4.130.0090.00916.36
7.4.120.0110.00716.59
7.4.110.0110.00716.56
7.4.100.0120.01216.70
7.4.90.0100.00716.45
7.4.80.0140.00619.39
7.4.70.0100.00616.54
7.4.60.0070.01416.44
7.4.50.0080.00716.48
7.4.40.0000.01616.46
7.4.20.0060.01516.40
7.4.10.0150.00016.66
7.4.00.0040.01216.49
7.3.330.0000.00716.06
7.3.320.0060.00013.31
7.3.310.0030.00316.31
7.3.300.0030.00316.30
7.3.290.0030.01216.27
7.3.280.0090.00616.23
7.3.260.0070.01116.25
7.3.240.0110.00916.30
7.3.230.0080.01116.32
7.3.210.0140.00316.46
7.3.200.0090.00716.23
7.3.190.0140.01016.41
7.3.180.0060.00916.32
7.3.170.0030.01316.20
7.3.160.0100.01016.24
7.3.130.0060.00916.27
7.3.120.0130.00316.23
7.3.110.0090.00916.50
7.3.100.0030.01616.30
7.3.90.0000.01616.26
7.3.80.0110.00716.18
7.3.70.0160.00316.32
7.3.60.0030.01516.17
7.3.50.0120.00416.21
7.3.40.0060.01016.31
7.3.30.0100.00616.29
7.3.20.0100.00716.18
7.3.10.0060.01116.50
7.3.00.0120.00316.16
7.2.330.0090.00916.23
7.2.320.0100.01316.59
7.2.310.0120.00616.31
7.2.300.0140.00916.33
7.2.290.0160.00016.68
7.2.260.0130.00316.31
7.2.250.0030.01216.68
7.2.240.0100.01016.52
7.2.230.0070.01316.71
7.2.220.0080.00916.61
7.2.210.0030.01216.55
7.2.200.0120.00916.40
7.2.190.0160.00316.42
7.2.180.0040.01216.45
7.2.170.0100.00716.34
7.2.160.0080.00916.30
7.2.150.0100.00716.55
7.2.140.0080.00816.64
7.2.130.0130.00316.36
7.2.120.0160.00016.55
7.2.110.0040.01116.54
7.2.100.0060.00916.42
7.2.90.0090.00616.55
7.2.80.0060.00916.44
7.2.70.0030.01116.48
7.2.60.0070.01116.40
7.2.50.0170.00516.64
7.2.40.0110.00516.63
7.2.30.0030.01416.43
7.2.20.0120.00416.36
7.2.10.0090.00616.61
7.2.00.0080.00816.51

preferences:
28.04 ms | 403 KiB | 5 Q