3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $prop = 0; public function callBar() { $this->prop = 100; var_dump($this); $b = new Bar(); $b->trace(); } } class Bar { public function trace() { $bt = debug_backtrace(); var_dump($bt[1]["object"]); } } $f = new Foo(); $f->callBar();

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.70.0150.00316.38
8.3.60.0140.00718.55
8.3.50.0130.00717.39
8.3.40.0080.00818.83
8.3.30.0080.00818.38
8.3.20.0000.00820.52
8.3.10.0050.00320.15
8.3.00.0040.00423.71
8.2.190.0100.00716.58
8.2.180.0130.01018.17
8.2.170.0030.01322.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0060.00322.23
8.2.100.0070.00717.91
8.2.90.0050.00517.63
8.2.80.0040.00418.05
8.2.70.0040.00417.92
8.2.60.0080.00018.21
8.2.50.0080.00018.10
8.2.40.0050.00319.29
8.2.30.0030.00619.31
8.2.20.0080.00018.16
8.2.10.0000.00719.13
8.2.00.0000.00719.24
8.1.280.0090.00625.92
8.1.270.0090.00020.80
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00423.80
8.1.230.0030.00719.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00317.23
8.1.180.0000.00718.10
8.1.170.0050.00318.44
8.1.160.0040.00418.82
8.1.150.0030.00518.87
8.1.140.0000.00720.94
8.1.130.0070.00019.97
8.1.120.0040.00417.43
8.1.110.0050.00217.30
8.1.100.0080.00017.28
8.1.90.0040.00417.40
8.1.80.0060.00317.29
8.1.70.0000.00717.42
8.1.60.0040.00417.60
8.1.50.0040.00417.43
8.1.40.0000.01017.57
8.1.30.0040.00417.66
8.1.20.0080.00017.67
8.1.10.0040.00417.50
8.1.00.0000.00817.46
8.0.300.0030.00519.64
8.0.290.0040.00416.63
8.0.280.0040.00418.31
8.0.270.0050.00317.10
8.0.260.0030.00319.89
8.0.250.0070.00016.79
8.0.240.0000.00716.89
8.0.230.0000.00716.93
8.0.220.0030.00316.76
8.0.210.0070.00416.70
8.0.200.0060.00316.79
8.0.190.0030.00316.84
8.0.180.0000.00716.70
8.0.170.0040.00416.78
8.0.160.0040.00416.73
8.0.150.0040.00416.77
8.0.140.0000.00716.86
8.0.130.0000.00613.19
8.0.120.0000.00816.79
8.0.110.0040.00416.81
8.0.100.0050.00316.63
8.0.90.0000.00816.87
8.0.80.0150.00316.84
8.0.70.0040.00416.87
8.0.60.0080.00016.73
8.0.50.0040.00416.71
8.0.30.0110.00717.29
8.0.20.0100.01017.25
8.0.10.0070.00016.90
8.0.00.0090.01016.69
7.4.330.0050.00015.55
7.4.320.0000.00616.40
7.4.300.0060.00016.59
7.4.290.0000.00816.64
7.4.280.0040.00416.45
7.4.270.0000.01116.50
7.4.260.0000.00613.14
7.4.250.0000.00716.48
7.4.240.0030.00516.60
7.4.230.0020.00516.48
7.4.220.0020.00516.44
7.4.210.0090.00616.59
7.4.200.0000.00716.71
7.4.130.0100.00716.54
7.4.120.0150.00616.62
7.4.110.0100.00716.27
7.4.100.0100.00716.45
7.4.90.0000.01616.53
7.4.80.0040.01419.39
7.4.70.0030.01316.51
7.4.60.0100.00616.39
7.4.50.0040.01116.65
7.4.40.0100.00716.47
7.4.00.0000.01414.82
7.3.330.0030.00316.36
7.3.320.0000.00613.37
7.3.310.0030.00316.36
7.3.300.0030.00316.22
7.3.290.0070.00016.38
7.3.280.0110.00416.33
7.3.260.0130.00716.42
7.3.230.0110.00516.35
7.3.210.0160.00316.43
7.3.200.0060.01516.43
7.3.190.0080.01316.29
7.3.180.0110.00716.41
7.3.170.0060.01016.38
7.3.160.0120.00416.27
7.3.80.0070.00414.95
7.3.70.0090.00614.85
7.3.60.0070.01014.63
7.3.50.0080.00314.66
7.3.40.0030.00914.70
7.3.30.0140.00714.57
7.3.20.0060.00616.50
7.3.10.0030.00916.59
7.3.00.0070.00716.54
7.2.330.0090.00916.50
7.2.320.0110.01216.82
7.2.310.0060.01516.28
7.2.300.0100.00616.41
7.2.290.0090.00916.28
7.2.210.0080.00414.86
7.2.200.0110.00815.01
7.2.190.0040.00814.72
7.2.180.0090.00314.66
7.2.170.0100.00314.96
7.2.160.0040.01114.98
7.2.150.0100.00216.86
7.2.140.0150.00816.88
7.2.130.0030.00916.93
7.2.120.0060.00616.74
7.2.110.0030.01416.58
7.2.100.0050.00516.89
7.2.90.0070.00416.96
7.2.80.0040.00716.91
7.2.70.0030.00816.91
7.2.60.0060.00616.61
7.2.50.0030.01116.72
7.2.40.0090.00616.95
7.2.30.0070.01016.87
7.2.20.0060.00616.92
7.2.10.0070.00616.86
7.2.00.0000.01216.73
7.1.310.0050.00515.90
7.1.300.0040.00715.50
7.1.290.0040.00715.66
7.1.280.0110.00015.75
7.1.270.0040.01115.77
7.1.260.0030.01215.65
7.1.250.0070.00415.76

preferences:
18.57 ms | 401 KiB | 5 Q