3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { static function foo() { echo __METHOD__.PHP_EOL;} } ['x', 'foo'](); [0 => 'x', 1 => 'foo'](); //Array callback has to contain indices 0 and 1 //[10 => 'x', 11 => 'foo'](); //Array callback must have exactly two elements //[10 => 'x', 11 => 'foo', 0 =>0, 1=>1](); // OK! [1 => 'foo', 0 => 'x']();

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.5.60.0050.00216.83
8.5.50.0050.00416.64
8.5.30.0130.00618.11
8.5.20.0070.01120.06
8.5.10.0100.00816.79
8.5.00.0120.01122.75
8.4.210.0050.00519.55
8.4.180.0120.01119.54
8.4.170.0110.00923.89
8.4.160.0130.00921.93
8.4.150.0070.00516.82
8.4.140.0130.00817.32
8.4.130.0130.00817.57
8.4.120.0420.00817.61
8.4.110.0420.00817.66
8.4.100.0230.00617.76
8.4.90.0470.00517.34
8.4.80.0410.00817.94
8.4.70.0430.00717.68
8.4.60.0390.01017.49
8.4.50.0430.00717.42
8.4.40.0450.01117.34
8.4.30.0350.00617.27
8.4.20.0330.00917.54
8.4.10.0420.00917.43
8.3.300.0110.00920.67
8.3.290.0100.01020.75
8.3.280.0120.00918.38
8.3.270.0150.00516.40
8.3.260.0060.01016.34
8.3.250.0430.00516.31
8.3.240.0390.00716.59
8.3.230.0370.00816.63
8.3.220.0310.00916.27
8.3.210.0540.00816.38
8.3.200.0340.00716.51
8.3.190.0290.00616.17
8.3.180.0360.00716.33
8.3.170.0440.00616.33
8.3.160.0460.00916.48
8.3.150.0420.00916.78
8.3.140.0400.01116.33
8.3.130.0320.00816.27
8.3.120.0360.00716.38
8.3.110.0330.01116.41
8.3.100.0410.00916.48
8.3.90.0460.00816.36
8.3.80.0400.00916.25
8.3.70.0250.00616.34
8.3.60.0230.00416.32
8.3.50.0200.00216.61
8.3.40.0490.00817.22
8.3.30.0370.00917.30
8.3.20.0310.00917.23
8.3.10.0300.01017.25
8.3.00.0340.00717.32
8.2.300.0160.00820.18
8.2.290.0330.00916.38
8.2.280.0290.00716.38
8.2.270.0310.00816.29
8.2.260.0310.00916.36
8.2.250.0310.00916.27
8.2.240.0360.00816.00
8.2.230.0370.00816.15
8.2.220.0360.00916.16
8.2.210.0330.00816.40
8.2.200.0350.00716.33
8.2.190.0350.00716.05
8.2.180.0310.01116.02
8.2.170.0360.01117.74
8.2.160.0330.01117.47
8.2.150.0250.00517.50
8.2.140.0320.00817.36
8.2.130.0250.00417.54
8.2.120.0180.00117.59
8.2.110.0170.00517.37
8.2.100.0180.00217.61
8.2.90.0250.00417.37
8.2.80.0160.00317.50
8.2.70.0280.00617.19
8.2.60.0200.00617.38
8.2.50.0400.00417.21
8.2.40.0460.00817.42
8.2.30.0370.00417.36
8.2.20.0210.00417.36
8.2.10.0150.00317.42
8.2.00.0140.00417.43
8.1.340.0070.01221.45

preferences:
59.98 ms | 846 KiB | 5 Q