3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [123]; unset($array[0]); if($array === []){ // then $array[] = "x"; // will result in assert([0 => "x"] === $array); }

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.0070.00319.68
8.4.120.0130.00620.57
8.4.110.0140.00722.22
8.4.100.0110.00918.74
8.4.90.0060.00318.86
8.4.80.0140.00618.81
8.4.70.0130.01019.93
8.4.60.0090.01220.57
8.4.50.0140.00718.61
8.4.40.0060.01317.65
8.4.30.0030.01017.66
8.4.20.0070.00418.78
8.4.10.0100.00717.89
8.3.260.0120.00916.87
8.3.250.0120.00818.82
8.3.240.0130.00816.97
8.3.230.0100.00916.43
8.3.220.0060.00218.82
8.3.210.0040.00516.77
8.3.200.0040.00416.87
8.3.190.0090.00917.20
8.3.180.0080.01016.55
8.3.170.0110.00720.43
8.3.160.0140.00017.24
8.3.150.0160.00317.41
8.3.140.0060.01216.33
8.3.130.0040.00418.53
8.3.120.0060.00320.85
8.3.110.0040.00416.78
8.3.100.0030.00524.06
8.3.90.0040.00426.77
8.3.80.0090.00317.97
8.3.70.0120.00316.78
8.3.60.0100.01018.30
8.3.50.0160.00617.36
8.3.40.0160.00318.84
8.3.30.0060.00918.80
8.3.20.0040.00418.77
8.3.10.0070.00021.95
8.3.00.0040.00421.75
8.2.290.0120.00820.58
8.2.280.0100.01018.30
8.2.270.0070.01417.14
8.2.260.0000.01516.67
8.2.250.0040.00416.55
8.2.240.0060.00319.02
8.2.230.0040.00420.94
8.2.220.0040.00437.54
8.2.210.0130.00626.77
8.2.200.0000.00816.50
8.2.190.0160.00318.66
8.2.180.0060.01518.29
8.2.170.0120.00318.87
8.2.160.0140.00322.96
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.13
8.2.120.0060.00326.35
8.2.110.0080.00322.27
8.2.100.0060.00617.84
8.2.90.0080.00317.75
8.2.80.0040.00417.97
8.2.70.0000.00818.03
8.2.60.0040.00418.16
8.2.50.0030.00518.10
8.2.40.0000.00821.15
8.2.30.0040.00420.52
8.2.20.0040.00417.99
8.2.10.0030.00617.96
8.2.00.0050.00317.95
8.1.330.0110.00722.10
8.1.320.0110.00816.13
8.1.310.0100.00716.69
8.1.300.0100.01018.74
8.1.290.0050.00530.84
8.1.280.0090.01425.92
8.1.270.0060.00322.01
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00321.03
8.1.230.0070.00418.95
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0040.00418.96
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0050.00318.73
8.1.150.0030.00318.73
8.1.140.0000.00720.67
8.1.130.0000.00820.22
8.1.120.0000.00717.30
8.1.110.0000.00717.27
8.1.100.0000.00717.44
8.1.90.0050.00317.29
8.1.80.0040.00417.28
8.1.70.0000.00717.40
8.1.60.0060.00317.62
8.1.50.0040.00417.55
8.1.40.0060.00617.46
8.1.30.0000.00817.53
8.1.20.0070.00017.64
8.1.10.0000.00717.56
8.1.00.0060.00317.46
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.31
8.0.270.0070.00017.15
8.0.260.0030.00318.39
8.0.250.0030.00316.93
8.0.240.0060.00316.87
8.0.230.0040.00416.94
8.0.220.0030.00316.90
8.0.210.0000.00716.92
8.0.200.0030.00316.98
8.0.190.0040.00416.82
8.0.180.0050.00316.80
8.0.170.0050.00316.90
8.0.160.0000.00716.95
8.0.150.0000.00716.90
8.0.140.0030.00316.73
8.0.130.0060.00013.30
8.0.120.0070.00016.88
8.0.110.0040.00416.88
8.0.100.0050.00316.70
8.0.90.0050.00316.85
8.0.80.0070.00916.84
8.0.70.0080.00016.79
8.0.60.0080.00016.80
8.0.50.0040.00416.95
8.0.30.0060.00917.18
8.0.20.0110.00917.40
8.0.10.0040.00417.05
8.0.00.0090.00816.98
7.4.330.0000.00615.55
7.4.320.0000.00816.51
7.4.300.0050.00316.34
7.4.290.0030.00316.59
7.4.280.0060.00316.55
7.4.270.0000.00716.51
7.4.260.0030.00616.48
7.4.250.0000.00716.46
7.4.240.0030.00316.54
7.4.230.0040.00416.46
7.4.220.0040.00416.59
7.4.210.0090.00916.55
7.4.200.0030.00316.60
7.4.160.0090.00816.42
7.4.140.0120.00817.86
7.4.130.0200.00416.64
7.4.120.0100.01016.49
7.4.110.0030.01316.45
7.4.100.0070.01016.44
7.4.90.0120.00616.43
7.4.80.0140.00319.39
7.4.70.0080.00916.55
7.4.60.0160.00616.47
7.4.50.0030.01416.67
7.4.40.0090.00916.57
7.4.00.0100.00715.20
7.3.330.0020.00213.22
7.3.320.0050.00013.31
7.3.310.0000.00716.48
7.3.300.0030.00316.38
7.3.290.0000.00716.29
7.3.280.0100.00716.34
7.3.260.0130.00816.46
7.3.240.0090.00916.52
7.3.230.0100.00716.41
7.3.210.0090.00916.53
7.3.200.0130.00316.70
7.3.190.0070.01016.46
7.3.180.0090.01216.40
7.3.170.0080.00816.38
7.3.160.0060.00916.56
7.2.330.0070.01716.69
7.2.320.0130.00716.26
7.2.310.0150.00616.72
7.2.300.0030.01416.55
7.2.290.0030.01516.64
7.2.100.1940.00614.89
7.2.90.2830.01014.64
7.2.80.2660.00614.91
7.2.70.2260.00715.07
7.2.60.2120.01315.14
7.2.50.2630.00014.98
7.2.40.2210.00614.75
7.2.30.2550.01314.74
7.2.20.3760.00314.80
7.2.10.1730.00314.64
7.2.00.2540.01314.68
7.1.220.1650.01013.61
7.1.210.2860.00014.05
7.1.200.3380.00613.95
7.1.190.2300.01013.66
7.1.180.2200.00613.94
7.1.170.2430.00313.48
7.1.160.3560.00313.83
7.1.150.3260.00713.90
7.1.140.4580.00313.63
7.1.130.2890.00313.82
7.1.120.3590.01013.46
7.1.110.4200.01313.50
7.1.100.4300.00713.40
7.1.90.3880.00913.76
7.1.80.3960.01013.79
7.1.70.4500.00613.87
7.1.60.3590.01331.86
7.1.50.6400.01031.70
7.1.40.5820.00731.93
7.1.30.7440.01332.03
7.1.20.8130.00631.57
7.1.10.6700.00313.55
7.1.00.4510.00714.04
5.6.380.0100.01114.63

preferences:
84.17 ms | 403 KiB | 5 Q