3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function bar() { echo foo::class . "\n"; return (object) ['foo::test' => 'test', 'body' => 'content']; } public function test() { return $this; } } $f = new foo(); $pdf = pdf_new(); 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.50
8.3.50.0110.00316.09
8.3.40.0130.00718.97
8.3.30.0040.01118.81
8.3.20.0070.00020.35
8.3.10.0080.00023.41
8.3.00.0050.00317.78
8.2.180.0090.00618.25
8.2.170.0090.00622.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00021.06
8.2.120.0040.00426.35
8.2.110.0030.00722.27
8.2.100.0110.00017.91
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00718.04
8.2.50.0060.00318.10
8.2.40.0050.00320.55
8.2.30.0000.00719.13
8.2.20.0040.00418.00
8.2.10.0040.00417.99
8.2.00.0000.00717.95
8.1.270.0080.00023.81
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00423.97
8.1.230.0040.00717.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0040.00418.57
8.1.160.0000.00719.12
8.1.150.0030.00620.57
8.1.140.0040.00419.45
8.1.130.0050.00518.84
8.1.120.0030.00317.35
8.1.110.0070.00317.44
8.1.100.0040.00417.34
8.1.90.0040.00417.40
8.1.80.0070.00017.42
8.1.70.0070.00017.39
8.1.60.0040.00417.61
8.1.50.0040.00417.49
8.1.40.0000.00817.44
8.1.30.0060.00317.66
8.1.20.0030.00617.50
8.1.10.0050.00217.63
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.43
8.0.270.0040.00417.16
8.0.260.0000.00616.85
8.0.250.0040.00416.88
8.0.240.0000.00716.87
8.0.230.0080.00016.99
8.0.220.0000.00716.79
8.0.210.0070.00016.92
8.0.200.0030.00316.83
8.0.190.0060.00316.94
8.0.180.0060.00316.88
8.0.170.0000.00716.96
8.0.160.0000.00716.86
8.0.150.0000.00716.75
8.0.140.0000.00716.88
8.0.130.0050.00013.29
8.0.120.0030.00316.85
8.0.110.0030.00316.82
8.0.100.0040.00416.82
8.0.90.0030.00316.80
8.0.80.0040.01316.91
8.0.70.0000.00716.80
8.0.60.0000.00716.69
8.0.50.0000.00716.75
8.0.30.0060.01016.96
8.0.20.0120.00917.40
8.0.10.0070.00016.84
8.0.00.0130.00316.66
7.4.330.0050.00015.55
7.4.320.0060.00016.37
7.4.300.0000.00616.49
7.4.290.0040.00416.55
7.4.280.0050.00316.41
7.4.270.0000.00716.43
7.4.260.0000.00713.29
7.4.250.0040.00416.56
7.4.240.0000.00716.54
7.4.230.0070.00016.71
7.4.220.0110.01416.71
7.4.210.0090.00616.56
7.4.200.0050.00316.46
7.4.160.0110.00516.46
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0070.01016.36
7.4.120.0110.01316.55
7.4.110.0130.00316.45
7.4.100.0070.01116.44
7.4.90.0110.00416.53
7.4.80.0120.00619.39
7.4.70.0100.01016.54
7.4.60.0110.00716.61
7.4.50.0060.00616.14
7.4.40.0140.00316.36
7.4.30.0120.00616.62
7.4.00.0040.01214.78
7.3.330.0000.00513.09
7.3.320.0060.00013.35
7.3.310.0030.00316.40
7.3.300.0000.00716.36
7.3.290.0000.00716.28
7.3.280.0100.00716.30
7.3.270.0060.01117.40
7.3.260.0070.02016.29
7.3.250.0050.01416.30
7.3.240.0100.00716.40
7.3.230.0170.00716.55
7.3.210.0060.01016.34
7.3.200.0060.00916.44
7.3.190.0130.00716.22
7.3.180.0070.00816.56
7.3.170.0080.00816.34
7.3.160.0060.01016.37
7.3.120.0090.00614.69
7.3.110.0000.01514.67
7.3.100.0000.01314.78
7.3.90.0030.01014.69
7.3.80.0130.00314.60
7.3.70.0090.00614.80
7.3.60.0090.00314.52
7.3.50.0060.00314.79
7.3.40.0050.00314.80
7.3.30.0030.01014.62
7.3.20.0060.00616.64
7.3.10.0000.01016.54
7.3.00.0000.01016.45
7.2.330.0060.01216.39
7.2.320.0060.01016.66
7.2.310.0100.00716.23
7.2.300.0130.01016.69
7.2.290.0120.00616.32
7.2.240.0030.01015.02
7.2.230.0080.00415.13
7.2.220.0030.01014.96
7.2.210.0070.00714.64
7.2.200.0040.01115.03
7.2.190.0080.00814.78
7.2.180.0030.01414.80
7.2.170.0040.00714.81
7.2.160.0030.01014.66
7.2.150.0060.00616.62
7.2.140.0040.00816.82
7.2.130.0030.00916.87
7.2.120.0000.01516.85
7.2.110.0040.01516.97
7.2.100.0070.00716.88
7.2.90.0160.00915.70
7.2.80.0500.00115.63
7.2.70.0120.00916.04
7.2.60.0110.00615.97
7.2.50.0230.00716.03
7.2.40.0430.00215.88
7.2.30.0340.00415.97
7.2.20.0250.00615.75
7.2.10.0070.00815.83
7.2.00.0050.00716.04
7.1.330.0150.00015.61
7.1.320.0070.00715.39
7.1.310.0000.01115.85
7.1.300.0000.01615.77
7.1.290.0060.01015.80
7.1.280.0060.00915.37
7.1.270.0000.01315.70
7.1.260.0030.01315.41
7.1.250.0060.00615.57
7.1.210.0000.01313.66
7.1.200.0350.00613.71
7.1.190.0470.01013.64
7.1.180.0150.00413.82
7.1.170.0070.00413.84
7.1.160.0110.00613.82
7.1.150.0290.00513.66
7.1.140.0030.01013.75
7.1.130.0080.00813.84
7.1.120.1430.00013.82
7.1.110.1270.00013.68
7.1.100.1500.00413.94
7.1.90.2050.00613.64
7.1.80.0120.00013.84
7.1.70.1820.00613.78
7.1.60.2600.00732.02
7.1.50.0310.01131.88
7.1.40.0400.02031.82
7.1.30.3170.01131.72
7.1.20.0380.00631.91
7.1.10.0040.01413.45
7.1.00.1140.01013.78
7.0.310.0030.01013.42
7.0.300.0150.00413.19
7.0.290.0250.01613.23
7.0.280.1050.00013.63
7.0.270.0090.00313.41
7.0.260.0660.00713.34
7.0.250.1240.00713.61
7.0.240.1010.00713.48
7.0.230.0380.00613.40
7.0.220.0090.00413.52
7.0.210.2080.01013.59
7.0.200.0100.00313.45
7.0.190.0160.00813.18
7.0.180.0080.00413.41
7.0.170.0140.00413.37
7.0.160.0150.00313.23
7.0.150.0090.00713.40
7.0.140.0090.00313.33
7.0.130.0470.01113.46
7.0.120.0080.00613.64
7.0.110.0340.00313.41
7.0.100.0050.01313.52
7.0.90.0130.00813.23
7.0.80.0280.00413.59
7.0.70.0410.01313.24
7.0.60.0130.00613.38
7.0.50.1290.01313.57
7.0.40.0120.00213.56
7.0.30.0120.00413.59
7.0.20.0140.00013.46
7.0.10.0220.00713.39
7.0.00.0040.01113.45

preferences:
57.02 ms | 400 KiB | 5 Q