3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, 2, 3]; unset($a[2]); $a[] = 4; var_dump($a);

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.130.0120.00917.59
8.4.120.0060.00420.80
8.4.110.0120.00818.82
8.4.100.0040.00517.61
8.4.90.0150.00617.52
8.4.80.0060.00217.79
8.4.70.0110.00919.45
8.4.60.0140.00619.63
8.4.50.0140.00718.50
8.4.40.0100.01017.83
8.4.30.0130.00724.04
8.4.20.0100.01019.62
8.4.10.0120.00819.57
8.3.260.0080.00816.53
8.3.250.0050.00319.03
8.3.240.0090.00916.48
8.3.230.0140.00516.57
8.3.220.0050.00418.37
8.3.210.0090.01016.57
8.3.200.0050.01318.73
8.3.190.0110.00717.17
8.3.180.0080.01019.01
8.3.170.0030.01616.96
8.3.160.0120.00618.47
8.3.150.0140.00417.06
8.3.140.0110.00416.45
8.3.130.0110.00017.04
8.3.120.0090.00618.76
8.3.110.0140.00716.36
8.3.100.0390.00616.19
8.3.90.0250.00816.52
8.3.80.0160.00816.38
8.3.70.0180.01416.43
8.3.60.0200.00316.58
8.3.50.0240.00816.26
8.3.40.0320.00617.56
8.3.30.0180.00917.35
8.3.20.0130.00417.25
8.3.10.0130.00917.37
8.3.00.0000.01319.13
8.2.290.0110.00920.57
8.2.280.0110.00816.40
8.2.270.0100.01016.75
8.2.260.0000.00817.25
8.2.250.0050.00316.44
8.2.240.0060.00316.46
8.2.230.0150.00416.17
8.2.220.0150.00516.66
8.2.210.0210.00016.05
8.2.200.0080.01116.72
8.2.190.0160.00316.34
8.2.180.0060.01316.64
8.2.170.0230.00017.59
8.2.160.0250.00417.33
8.2.150.0320.00917.56
8.2.140.0310.01017.57
8.2.130.0360.00717.40
8.2.120.0360.00717.64
8.2.110.0390.00717.46
8.2.100.0300.00717.50
8.2.90.0290.00317.61
8.2.80.0330.00317.56
8.2.70.0370.00417.22
8.2.60.0250.01617.09
8.2.50.0420.00017.38
8.2.40.0290.01117.46
8.2.30.0350.00317.55
8.2.20.0290.00417.59
8.2.10.0430.00017.07
8.2.00.0240.01717.40
8.1.330.0120.00718.40
8.1.320.0070.01216.06
8.1.310.0050.00316.77
8.1.300.0120.00616.19
8.1.290.0220.01516.05
8.1.280.0240.01216.09
8.1.270.0320.00317.23
8.1.260.0340.00817.26
8.1.250.0280.00817.16
8.1.240.0260.01117.07
8.1.230.0320.00417.14
8.1.220.0270.01017.04
8.1.210.0220.01617.07
8.1.200.0280.00917.21
8.1.190.0210.01617.17
8.1.180.0280.00916.96
8.1.170.0340.00917.15
8.1.160.0210.01217.00
8.1.150.0190.00416.98
8.1.140.0230.00517.06
8.1.130.0130.00317.09
8.1.120.0190.00017.11
8.1.110.0150.00216.93
8.1.100.0130.00416.97
8.1.90.0240.00717.23
8.1.80.0230.00317.11
8.1.70.0250.00417.15
8.1.60.0310.01017.46
8.1.50.0180.00517.21
8.1.40.0130.01317.16
8.1.30.0140.01417.34
8.1.20.0220.00917.42
8.1.10.0140.01117.05
8.1.00.0300.00317.12

preferences:
38.82 ms | 403 KiB | 5 Q