3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function test1() { echo foo::class . "\n"; return (object) ['foo::test' => 'test', 'body' => 'content']; } public function test() { print_r(debug_backtrace()); return $this; } } class bar extends foo{ public function aa(){ return $this->test(); } } $bar = new bar(); $bar->aa();

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.0120.00316.75
8.3.50.0070.00716.34
8.3.40.0150.00018.73
8.3.30.0080.00818.59
8.3.20.0000.00720.25
8.3.10.0000.00723.52
8.3.00.0100.00017.66
8.2.180.0090.00918.29
8.2.170.0120.00322.96
8.2.160.0100.00320.25
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00821.02
8.2.120.0000.00826.35
8.2.110.0060.00320.38
8.2.100.0070.00417.71
8.2.90.0050.00319.27
8.2.80.0040.00417.97
8.2.70.0090.00317.38
8.2.60.0030.00517.80
8.2.50.0000.00818.10
8.2.40.0040.00420.47
8.2.30.0080.00021.08
8.2.20.0050.00317.86
8.2.10.0040.00417.88
8.2.00.0000.00718.00
8.1.280.0120.00625.92
8.1.270.0050.00323.87
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00923.98
8.1.230.0040.00717.71
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0050.00219.02
8.1.150.0000.00720.65
8.1.140.0030.00619.38
8.1.130.0030.00318.80
8.1.120.0070.00017.27
8.1.110.0030.00517.34
8.1.100.0050.00317.43
8.1.90.0040.00417.42
8.1.80.0070.00017.38
8.1.70.0040.00417.38
8.1.60.0030.00517.56
8.1.50.0050.00317.52
8.1.40.0040.00417.41
8.1.30.0030.00517.60
8.1.20.0040.00817.67
8.1.10.0000.00817.46
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.29
8.0.270.0000.00817.23
8.0.260.0000.00616.81
8.0.250.0030.00316.89
8.0.240.0070.00016.91
8.0.230.0070.00316.86
8.0.220.0030.00316.84
8.0.210.0070.00016.84
8.0.200.0070.00016.77
8.0.190.0070.00316.76
8.0.180.0040.00416.69
8.0.170.0040.00416.80
8.0.160.0040.00416.71
8.0.150.0040.00416.73
8.0.140.0080.00016.70
8.0.130.0060.00013.26
8.0.120.0040.00416.80
8.0.110.0000.00716.86
8.0.100.0050.00216.64
8.0.90.0000.00716.73
8.0.80.0080.00816.73
8.0.70.0070.00016.76
8.0.60.0050.00216.77
8.0.50.0000.00716.70
8.0.30.0100.00816.97
8.0.20.0100.00817.40
8.0.10.0080.00016.82
8.0.00.0060.01116.96
7.4.330.0000.00515.55
7.4.320.0050.00216.37
7.4.300.0000.00616.49
7.4.290.0030.00516.50
7.4.280.0040.00416.38
7.4.270.0000.00716.41
7.4.260.0030.00313.25
7.4.250.0080.00016.60
7.4.240.0030.00316.52
7.4.230.0030.00316.66
7.4.220.0160.00916.48
7.4.210.0100.00316.62
7.4.200.0000.00716.52
7.4.160.0090.00716.32
7.4.150.0090.01417.40
7.4.140.0100.00717.86
7.4.130.0060.01316.25
7.4.120.0110.00816.45
7.4.110.0030.01416.62
7.4.100.0070.01016.34
7.4.90.0200.00316.31
7.4.80.0040.01219.39
7.4.70.0100.00616.32
7.4.60.0080.00816.47
7.4.50.0100.00716.38
7.4.40.0070.01016.39
7.4.30.0100.00716.32
7.4.00.0000.01414.79
7.3.330.0000.00513.23
7.3.320.0050.00013.12
7.3.310.0050.00216.06
7.3.300.0030.00316.24
7.3.290.0110.00316.18
7.3.280.0070.00916.23
7.3.270.0070.01017.40
7.3.260.0070.00816.39
7.3.250.0100.00816.29
7.3.240.0120.00516.38
7.3.230.0140.00316.26
7.3.210.0060.00916.30
7.3.200.0100.00716.36
7.3.190.0100.01316.29
7.3.180.0030.01616.32
7.3.170.0060.00916.54
7.3.160.0060.00916.48
7.3.10.0030.01216.77
7.3.00.0100.00316.62
7.2.330.0120.00616.50
7.2.320.0090.00916.24
7.2.310.0120.00916.62
7.2.300.0130.00316.33
7.2.290.0060.01216.41
7.2.130.0090.00616.58
7.2.120.0000.01216.83
7.2.110.0030.00916.88
7.2.100.0070.00716.81
7.2.90.0080.01015.83
7.2.80.0420.00915.69
7.2.70.0080.01016.02
7.2.60.0280.00515.97
7.2.50.0420.00815.67
7.2.40.0390.00715.83
7.2.30.0310.00615.73
7.2.20.0420.00815.67
7.2.10.0340.00915.75
7.2.00.0530.01515.92
7.1.250.0070.00715.80
7.1.210.0380.00513.71
7.1.200.0950.00013.65
7.1.190.0750.00713.75
7.1.180.0820.00313.82
7.1.170.0790.00713.83
7.1.160.0820.01013.63
7.1.150.0930.00713.82
7.1.140.0940.01013.69
7.1.130.0970.00614.02
7.1.120.0810.01013.65
7.1.110.1050.01313.75
7.1.100.0090.01113.96
7.1.90.0090.00613.84
7.1.80.0450.00614.08
7.1.70.0070.01013.80
7.1.60.0360.01031.70
7.1.50.1010.00031.64
7.1.40.1250.01031.74
7.1.30.0960.00731.52
7.1.20.1180.00731.89
7.1.10.1120.00313.80
7.1.00.0200.00713.91
7.0.310.0450.00913.24
7.0.300.1140.00713.29
7.0.290.0850.01013.45
7.0.280.0990.01313.42
7.0.270.0900.01013.46
7.0.260.0420.00013.45
7.0.250.0170.00613.25
7.0.240.1300.00713.23
7.0.230.0090.00913.32
7.0.220.0450.00613.65
7.0.210.0090.00613.17
7.0.200.0460.01013.23
7.0.190.0640.00313.29
7.0.180.0660.00313.52
7.0.170.0970.01013.39
7.0.160.1440.00313.32
7.0.150.0140.00313.47
7.0.140.0130.00713.48
7.0.130.0090.00913.59
7.0.120.0170.00013.54
7.0.110.0980.00313.26
7.0.100.0980.01213.45
7.0.90.1290.00613.18
7.0.80.0110.01113.01
7.0.70.1160.00313.25
7.0.60.0160.00313.35
7.0.50.0090.00613.52
7.0.40.0800.00613.38
7.0.30.0950.01113.39
7.0.20.0130.01013.50
7.0.10.0090.00913.57
7.0.00.0980.01313.59

preferences:
45.7 ms | 401 KiB | 5 Q