3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = []; array_unshift($x, 'a'); array_unshift($x, 'b'); array_unshift($x, 'c'); var_dump($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.4.140.0140.00917.39
8.4.130.0110.00917.45
8.4.120.0140.00623.85
8.4.110.0060.01122.48
8.4.100.0120.00918.77
8.4.90.0110.00918.90
8.4.80.0030.00518.52
8.4.70.0030.00517.75
8.4.60.0040.00719.00
8.4.50.0110.01020.55
8.4.40.0130.00718.60
8.4.30.0070.01118.74
8.4.20.0030.01619.83
8.4.10.0100.01019.37
8.3.270.0120.00816.61
8.3.260.0070.01116.40
8.3.250.0050.00718.85
8.3.240.0120.00716.89
8.3.230.0150.00416.40
8.3.220.0030.00518.72
8.3.210.0090.00918.36
8.3.200.0070.00216.40
8.3.190.0050.00416.85
8.3.180.0100.00817.10
8.3.170.0060.01219.01
8.3.160.0060.01216.85
8.3.150.0100.01017.09
8.3.140.0070.00018.98
8.3.130.0040.00418.47
8.3.120.0080.00418.87
8.3.110.0100.00020.94
8.3.100.0090.00024.06
8.3.90.0090.00926.77
8.3.80.0090.00017.97
8.3.70.0150.00418.40
8.3.60.0120.00318.34
8.3.50.0070.01118.41
8.3.40.0160.00619.70
8.3.30.0210.00718.97
8.3.20.0130.01021.64
8.3.10.0180.00421.66
8.3.00.0140.00718.85
8.2.290.0160.00320.26
8.2.280.0090.01118.61
8.2.270.0180.00017.12
8.2.260.0100.00016.64
8.2.250.0040.00418.58
8.2.240.0030.00617.14
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00616.50
8.2.190.0140.00018.04
8.2.180.0070.01116.47
8.2.170.0110.01118.71
8.2.160.0040.01819.97
8.2.150.0100.01319.02
8.2.140.0140.00720.47
8.2.130.0100.01020.52
8.2.120.0190.00319.22
8.2.110.0100.00719.30
8.2.100.0100.01019.18
8.2.90.0170.00718.82
8.2.80.0100.01019.16
8.2.70.0130.01018.75
8.2.60.0070.01418.70
8.2.50.0180.00319.28
8.2.40.0040.01418.46
8.2.30.0060.01218.53
8.2.20.0140.00718.55
8.2.10.0150.00818.52
8.2.00.0200.00318.70
8.1.330.0120.00621.77
8.1.320.0080.01015.95
8.1.310.0000.00816.75
8.1.300.0090.00615.92
8.1.290.0030.00730.84
8.1.280.0040.01125.92
8.1.270.0070.01522.29
8.1.260.0070.01522.03
8.1.250.0120.00922.02
8.1.240.0180.00618.54
8.1.230.0070.01418.50
8.1.220.0090.01220.47
8.1.210.0110.00818.38
8.1.200.0040.01118.53
8.1.190.0110.00418.67
8.1.180.0120.00618.25
8.1.170.0070.01018.74
8.1.160.0150.00418.35
8.1.150.0040.01118.80
8.1.140.0120.00618.52
8.1.130.0110.00418.73
8.1.120.0110.00418.55
8.1.110.0070.01118.55
8.1.100.0090.00621.47
8.1.90.0130.00618.58
8.1.80.0110.00719.53
8.1.70.0150.00318.61
8.1.60.0120.00618.72
8.1.50.0070.01118.54
8.1.40.0210.00018.50
8.1.30.0070.01118.89
8.1.20.0220.00019.95
8.1.10.0090.00918.56
8.1.00.0070.01118.47

preferences:
29.43 ms | 403 KiB | 5 Q