3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = [1, 2, 3]; var_dump(A); array_push(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.3.70.0090.00916.50
8.3.60.0110.01118.30
8.3.50.0180.00321.18
8.3.40.0170.00318.83
8.3.30.0080.00619.05
8.3.20.0050.00320.38
8.3.10.0040.00423.61
8.3.00.0060.00319.38
8.2.180.0090.00918.41
8.2.170.0140.00722.96
8.2.160.0110.00420.47
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0000.01426.16
8.2.120.0050.00222.29
8.2.110.0040.00422.21
8.2.100.0030.00618.70
8.1.280.0110.00425.92
8.1.270.0000.00922.21
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00618.32
8.1.230.0090.00018.57
5.4.340.0430.04019.08
5.4.320.0370.03719.24
5.4.310.0430.04718.92
5.4.300.0300.04319.21
5.4.290.0330.04019.16
5.4.280.0430.04719.21
5.4.270.0300.03719.21
5.4.260.0330.03319.25
5.4.250.0330.03319.13
5.4.240.0330.03319.08
5.4.230.0370.03018.80
5.4.220.0300.05319.20
5.4.210.0370.04019.15
5.4.200.0300.03719.08
5.4.190.0370.03019.15
5.4.180.0330.04018.91
5.4.170.0230.04319.23
5.4.160.0330.03318.79
5.4.150.0330.03319.22
5.4.140.0370.03016.25
5.4.130.0370.02716.33
5.4.120.0300.03316.28
5.4.110.0300.03716.06
5.4.100.0330.05016.43
5.4.90.0300.03316.49
5.4.80.0430.06316.05
5.4.70.0500.05316.38
5.4.60.0330.04316.45
5.4.50.0470.06316.04
5.4.40.0470.05016.40
5.4.30.0430.04716.38
5.4.20.0430.05316.43
5.4.10.0530.05716.39
5.4.00.0330.04715.71
5.3.290.0470.04014.60
5.3.280.0270.04314.55
5.3.270.0300.03714.46
5.3.260.0270.04014.69
5.3.250.0300.03714.55
5.3.240.0400.04014.43
5.3.230.0300.03714.64
5.3.220.0300.03714.47
5.3.210.0230.04314.41
5.3.200.0300.03714.41
5.3.190.0400.06714.67
5.3.180.0370.07314.41
5.3.170.0470.05714.40
5.3.160.0470.06314.52
5.3.150.0470.07014.50
5.3.140.0470.05314.41
5.3.130.0500.06014.48
5.3.120.0430.03714.40
5.3.110.0500.06014.41
5.3.100.0500.04713.90
5.3.90.0470.05013.88
5.3.80.0330.04014.04
5.3.70.0370.03713.86
5.3.60.0470.05313.98
5.3.50.0500.04013.97
5.3.40.0330.04313.85
5.3.30.0470.06713.86
5.3.20.0570.05013.71
5.3.10.0470.04013.45
5.3.00.0570.05313.70
5.2.170.0470.04711.59
5.2.160.0430.04711.59
5.2.150.0370.05711.59
5.2.140.0430.05011.59
5.2.130.0400.06011.59
5.2.120.0370.03711.59
5.2.110.0570.03011.59
5.2.100.0430.04711.59
5.2.90.0300.03311.59
5.2.80.0270.03711.59
5.2.70.0400.02011.59
5.2.60.0400.05311.59
5.2.50.0370.04011.59
5.2.40.0330.04011.59
5.2.30.0330.05311.59
5.2.20.0330.04311.59
5.2.10.0270.03011.59
5.2.00.0330.03711.59
5.1.60.0300.04711.59
5.1.50.0330.05011.59
5.1.40.0270.04011.59
5.1.30.0330.04311.59
5.1.20.0300.04711.59
5.1.10.0300.05311.59
5.1.00.0300.05011.59
5.0.50.0170.04711.59
5.0.40.0130.03011.59
5.0.30.0200.03711.59
5.0.20.0200.03711.59
5.0.10.0200.02711.59
5.0.00.0230.05711.59
4.4.90.0130.01711.59
4.4.80.0270.02311.59
4.4.70.0130.03011.59
4.4.60.0100.03011.59
4.4.50.0130.02011.59
4.4.40.0170.04711.59
4.4.30.0200.02011.59
4.4.20.0130.02311.59
4.4.10.0130.02711.59
4.4.00.0130.04711.59
4.3.110.0170.03311.59
4.3.100.0170.01311.59
4.3.90.0170.03311.59
4.3.80.0230.04311.59
4.3.70.0200.02711.59
4.3.60.0130.03711.59
4.3.50.0170.02311.59
4.3.40.0170.04711.59
4.3.30.0100.02311.59
4.3.20.0070.01711.59
4.3.10.0130.03311.59
4.3.00.0070.03011.59

preferences:
36.05 ms | 401 KiB | 5 Q