3v4l.org

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

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.00916.63
8.3.50.0140.00416.50
8.3.40.0120.00318.67
8.3.30.0120.00318.69
8.3.20.0070.00020.19
8.3.10.0050.00321.80
8.3.00.0000.00817.59
8.2.180.0070.01016.50
8.2.170.0090.00622.96
8.2.160.0130.00020.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00819.25
8.2.120.0040.00426.35
8.2.110.0030.00620.39
8.2.100.0000.01217.78
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0070.00020.56
8.2.30.0040.00419.31
8.2.20.0040.00418.15
8.2.10.0050.00218.06
8.2.00.0040.00417.98
8.1.280.0080.00825.92
8.1.270.0000.00723.95
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00723.80
8.1.230.0080.00322.63
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0060.00317.10
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0030.00319.03
8.1.150.0060.00320.53
8.1.140.0070.00019.52
8.1.130.0030.00318.86
8.1.120.0040.00417.43
8.1.110.0000.00717.32
8.1.100.0070.00017.34
8.1.90.0110.00217.38
8.1.80.0000.00717.32
8.1.70.0070.00017.30
8.1.60.0040.00417.60
8.1.50.0080.00017.41
8.1.40.0000.00817.46
8.1.30.0040.00417.58
8.1.20.0030.00517.55
8.1.10.0040.00417.65
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.32
8.0.270.0030.00317.19
8.0.260.0000.00816.84
8.0.250.0000.00717.01
8.0.240.0030.00316.98
8.0.230.0040.00416.86
8.0.220.0000.00716.86
8.0.210.0000.00716.76
8.0.200.0070.00016.91
8.0.190.0080.00016.86
8.0.180.0080.00016.95
8.0.170.0000.00716.96
8.0.160.0030.00516.89
8.0.150.0030.00516.86
8.0.140.0080.00016.78
8.0.130.0030.00313.33
8.0.120.0000.00716.89
8.0.110.0030.00316.72
8.0.100.0000.00816.89
8.0.90.0000.00716.91
8.0.80.0080.00816.93
8.0.70.0000.00716.76
8.0.60.0000.00716.70
8.0.50.0040.00416.75
8.0.30.0120.00617.07
8.0.20.0110.01017.40
8.0.10.0030.00517.09
8.0.00.0060.01216.97
7.4.330.0000.00515.55
7.4.320.0000.00816.58
7.4.300.0030.00316.48
7.4.290.0040.00416.54
7.4.280.0040.00416.48
7.4.270.0070.00016.43
7.4.260.0040.00413.27
7.4.250.0070.00016.52
7.4.240.0030.00316.59
7.4.230.0020.00516.54
7.4.220.0070.01116.66
7.4.210.0080.00816.57
7.4.200.0050.00216.60
7.4.160.0080.00816.56
7.4.150.0120.00617.40
7.4.140.0050.01317.86
7.4.130.0070.01316.62
7.4.120.0120.01016.53
7.4.110.0110.00716.65
7.4.100.0110.01116.45
7.4.90.0060.01616.72
7.4.80.0070.01119.39
7.4.70.0100.00716.49
7.4.60.0040.01216.49
7.4.50.0020.00816.53
7.4.40.0080.00816.54
7.4.30.0030.01516.45
7.4.00.0060.01014.91
7.3.330.0030.00313.12
7.3.320.0000.00613.32
7.3.310.0050.00316.31
7.3.300.0060.00016.30
7.3.290.0050.00216.13
7.3.280.0080.00816.28
7.3.270.0110.00617.40
7.3.260.0070.01116.43
7.3.250.0140.00916.31
7.3.240.0090.00916.36
7.3.230.0160.00016.33
7.3.210.0100.00716.41
7.3.200.0120.00416.50
7.3.190.0040.01416.47
7.3.180.0120.00416.41
7.3.170.0120.00416.32
7.3.160.0060.01616.39
7.2.330.0040.01316.72
7.2.320.0060.01816.52
7.2.310.0030.01316.62
7.2.300.0060.01516.70
7.2.290.0150.00916.75
7.2.90.1010.00314.75
7.2.80.1070.00014.87
7.2.70.1420.00315.13
7.2.60.0100.01015.17
7.2.50.0090.01215.08
7.2.40.0040.01515.09
7.2.30.0570.00614.92
7.2.20.0620.00615.05
7.2.10.1310.00714.93
7.2.00.0120.01014.96
7.1.210.1480.00013.61
7.1.200.0200.01013.80
7.1.190.0870.01313.85
7.1.180.0720.01513.88
7.1.170.0090.01113.89
7.1.160.0720.00013.59
7.1.150.0150.00613.52
7.1.140.0950.00013.93
7.1.130.0560.00613.54
7.1.120.0250.00913.64
7.1.110.1140.01113.79
7.1.100.0250.00013.98
7.1.90.0180.01213.63
7.1.80.0110.01613.80
7.1.70.0140.00813.63
7.1.60.1280.01231.58
7.1.50.1760.01231.73
7.1.40.1770.00631.49
7.1.30.1620.01031.62
7.1.20.0550.00031.56
7.1.10.0070.00713.80
7.1.00.0130.00313.91
7.0.310.0860.00013.25
7.0.300.0780.01213.39
7.0.290.0110.00613.39
7.0.280.0740.01013.43
7.0.270.0540.00313.32
7.0.260.0150.00513.39
7.0.250.1040.00313.43
7.0.240.0120.00913.37
7.0.230.0270.00913.52
7.0.220.0060.01813.50
7.0.210.0480.01013.57
7.0.200.1570.00613.45
7.0.190.0950.00313.38
7.0.180.1220.00613.39
7.0.170.0460.00613.41
7.0.160.0080.00513.48
7.0.150.0620.00313.32
7.0.140.1100.01113.29
7.0.130.0150.00313.40
7.0.120.1490.01013.47
7.0.110.1390.00713.54
7.0.100.0270.01113.32
7.0.90.0420.00913.12
7.0.80.0200.00013.35
7.0.70.0190.00813.46
7.0.60.0230.00313.49
7.0.50.0150.00813.38
7.0.40.0160.00813.37
7.0.30.0150.00713.49
7.0.20.0150.00513.64
7.0.10.0530.00013.58
7.0.00.0270.00013.66

preferences:
51.49 ms | 400 KiB | 5 Q