3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (false) print "Test A1\n"; print "Test A2\n"; if (false) print "Test B1\n"; print "Test B2\n"; $arr = [1, 2, 3]; foreach ($arr as $item) print "Test C". $item ."\n"; print "Test CX\n";

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.4.120.0120.00723.92
8.4.110.0090.01118.77
8.4.100.0100.01018.74
8.4.90.0070.00920.45
8.4.80.0130.00718.82
8.4.70.0160.00518.98
8.4.60.0130.00718.87
8.4.50.0100.01020.21
8.4.40.0100.01017.64
8.4.30.0130.00720.45
8.4.20.0470.00317.82
8.4.10.0350.01417.67
8.3.250.0050.00518.90
8.3.240.0100.00516.98
8.3.230.0170.00416.46
8.3.220.0040.00419.16
8.3.210.0120.00618.32
8.3.200.0040.00516.40
8.3.190.0060.00920.98
8.3.180.0120.00718.84
8.3.170.0130.00717.27
8.3.160.0120.00618.60
8.3.150.0460.00016.31
8.3.140.0400.00716.43
8.3.130.0350.00316.38
8.3.120.0330.00816.32
8.3.110.0360.00616.66
8.3.100.0250.02116.48
8.3.90.0430.00316.58
8.3.80.0370.00316.35
8.3.70.0340.01116.68
8.3.60.0360.00916.59
8.3.50.0380.00316.38
8.3.40.0280.00917.34
8.3.30.0320.00417.40
8.3.20.0270.00617.46
8.3.10.0300.01017.58
8.3.00.0170.00719.32
8.2.290.0050.00422.05
8.2.280.0120.00720.11
8.2.270.0320.00716.57
8.2.260.0350.00316.36
8.2.250.0300.00916.61
8.2.240.0410.01216.23
8.2.230.0270.01216.25
8.2.220.0310.00916.29
8.2.210.0260.00316.41
8.2.200.0340.00316.14
8.2.190.0150.00916.55
8.2.180.0220.00416.45
8.2.170.0380.00417.68
8.2.160.0370.00317.55
8.2.150.0320.00717.34
8.2.140.0350.00617.37
8.2.130.0320.01117.34
8.2.120.0480.00017.32
8.2.110.0420.00617.50
8.2.100.0330.00817.42
8.2.90.0350.00417.63
8.2.80.0270.01217.48
8.2.70.0310.00717.42
8.2.60.0210.01817.46
8.2.50.0360.00417.50
8.2.40.0230.01317.55
8.2.30.0290.00417.50
8.2.20.0260.00317.51
8.2.10.0280.00417.43
8.2.00.0390.00017.64
8.1.320.0080.00616.13
7.3.330.0150.01016.92
5.5.380.0170.00515.62

preferences:
27.25 ms | 403 KiB | 5 Q