3v4l.org

run code in 300+ PHP versions simultaneously
<?php function WTF($arg) { // Payload: count the number of its own calls global $c; ++$c; // payload could be anything // use global to extract values global $collection; if (!isset($collection)) { $collection = []; } $collection[] = $arg; // also possible // $r = __FUNCTION__; // return $r(...) return __FUNCTION__; } WTF(1)(2)(4)(8)(16); echo "WTF was called $c times\n"; print_r($collection); ?>

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.30.0120.00617.82
8.5.20.0100.00920.26
8.5.10.0070.00316.89
8.5.00.0140.00719.90
8.4.180.0110.01222.06
8.4.170.0130.00823.92
8.4.160.0150.00723.97
8.4.150.0070.00516.88
8.4.140.0160.00517.46
8.4.130.0090.01117.95
8.4.120.0120.00820.30
8.4.110.0110.01018.63
8.4.100.0050.00817.70
8.4.90.0090.01020.50
8.4.80.0120.00620.43
8.4.70.0080.00820.44
8.4.60.0090.01120.49
8.4.50.0110.00818.91
8.4.40.0060.00319.70
8.4.30.0070.01118.93
8.4.20.0410.00717.72
8.4.10.0370.01017.41
8.3.300.0040.00620.76
8.3.290.0140.00720.72
8.3.280.0100.01018.52
8.3.270.0110.00816.49
8.3.260.0070.00616.93
8.3.250.0090.00918.89
8.3.240.0120.00816.49
8.3.230.0110.00716.85
8.3.220.0110.00619.09
8.3.210.0060.00918.59
8.3.200.0060.00316.55
8.3.190.0110.00817.04
8.3.180.0140.00619.03
8.3.170.0090.00317.48
8.3.160.0090.00918.59
8.3.150.0300.01516.69
8.3.140.0390.00816.36
8.3.130.0290.00716.68
8.3.120.0400.00016.46
8.3.110.0260.01116.88
8.3.100.0330.00916.37
8.3.90.0360.01016.45
8.3.80.0330.01316.38
8.3.70.0340.01216.40
8.3.60.0390.00016.26
8.3.50.0350.01416.28
8.3.40.0310.01217.59
8.3.30.0290.00717.70
8.3.20.0210.01417.51
8.3.10.0300.00617.52
8.3.00.0110.01117.39
8.2.300.0130.00718.02
8.2.290.0100.00720.68
8.2.280.0130.00518.29
8.2.270.0300.00716.77
8.2.260.0210.01416.68
8.2.250.0280.00916.52
8.2.240.0290.00916.14
8.2.230.0310.00816.50
8.2.220.0350.00316.47
8.2.210.0320.00716.68
8.2.200.0350.00316.41
8.2.190.0330.00616.28
8.2.180.0340.00716.44
8.2.170.0390.00317.66
8.2.160.0300.01017.65
8.2.150.0370.00317.72
8.2.140.0270.01417.56
8.2.130.0340.00717.52
8.2.120.0300.01117.59
8.2.110.0280.01417.35
8.2.100.0360.00317.55
8.2.90.0290.01117.40
8.2.80.0380.00717.21
8.2.70.0330.00917.23
8.2.60.0310.00717.28
8.2.50.0270.00317.26
8.2.40.0190.00017.48
8.2.30.0130.00517.40
8.2.20.0170.00017.25
8.2.10.0210.00017.32
8.2.00.0230.00817.25
8.1.340.0100.01019.95
8.1.320.0130.00717.76

preferences:
42.74 ms | 853 KiB | 5 Q