3v4l.org

run code in 300+ PHP versions simultaneously
<?php // comment for check $a instanceof a::b; // Parse error: syntax error, unexpected identifier "b", $a instanceof a::$p; // OK $a instanceof a::m(); //Parse error: syntax error, unexpected identifier "m", $a instanceof a::class; //Parse error: syntax error, unexpected token "class",

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.2.30.0070.00420.46
8.2.20.0060.00318.62
8.2.10.0140.00320.59
8.2.00.0110.00518.64
8.1.160.0100.00518.45
8.1.150.0090.00618.50
8.1.140.0110.00518.41
8.1.130.0060.00918.47
8.1.120.0130.00318.51
8.1.110.0120.00418.53
8.1.100.0100.00718.58
8.1.90.0120.00518.47
8.1.80.0110.00518.55
8.1.70.0090.00918.53
8.1.60.0150.00318.68
8.1.50.0210.00018.53
8.1.40.0140.00618.62
8.1.30.0130.00718.61
8.1.20.0110.00718.57
8.1.10.0140.00618.60
8.1.00.0190.00018.47
8.0.280.0000.00718.42
8.0.270.0030.00517.86
8.0.260.0140.00017.98
8.0.250.0070.00417.69
8.0.240.0000.01018.05
8.0.230.0110.00317.95
8.0.220.0000.01517.95
8.0.210.0170.00017.99
8.0.200.0100.00517.93
8.0.190.0110.00418.05
8.0.180.0090.00518.08
8.0.170.0080.00817.97
8.0.160.0110.00418.00
8.0.150.0100.00517.96
8.0.140.0110.00417.86
8.0.130.0130.00317.91
8.0.120.0050.01017.98
8.0.110.0130.00317.93
8.0.100.0110.00618.02
8.0.90.0110.00517.96
8.0.80.0090.00617.90
8.0.70.0080.00817.88
8.0.60.0070.00717.89
8.0.50.0080.00718.00
8.0.30.0080.00818.02
8.0.20.0150.00017.96
8.0.10.0100.00618.03

preferences:
150.48 ms | 1000 KiB | 7 Q