3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [123]; unset($array[0]); function changeScope($array){ if($array === []){ // then $array[] = "x"; // will result in assert([0 => "x"] === $array); } } changeScope($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.0090.01117.85
8.4.120.0090.01020.52
8.4.110.0120.00722.57
8.4.100.0130.00817.85
8.4.90.0130.00720.66
8.4.80.0100.00918.98
8.4.70.0100.00920.52
8.4.60.0110.00920.77
8.4.50.0090.00820.68
8.4.40.0110.00717.82
8.4.30.0070.01317.71
8.4.20.0040.00718.62
8.4.10.0100.01017.79
8.3.260.0130.00716.72
8.3.250.0160.00418.70
8.3.240.0130.00616.41
8.3.230.0080.00516.44
8.3.220.0080.00318.75
8.3.210.0090.00716.62
8.3.200.0050.00416.68
8.3.190.0100.00516.97
8.3.180.0100.00918.96
8.3.170.0070.01017.10
8.3.160.0070.01316.57
8.3.150.0190.00018.29
8.3.140.0080.00016.70
8.3.130.0060.00318.70
8.3.120.0030.00618.97
8.3.110.0060.00318.64
8.3.100.0000.01116.60
8.3.90.0000.00826.77
8.3.80.0060.00319.36
8.3.70.0120.00318.33
8.3.60.0110.01118.39
8.3.50.0090.00717.64
8.3.40.0120.00418.71
8.3.30.0110.00418.78
8.3.20.0030.00518.66
8.3.10.0050.00221.85
8.3.00.0100.00021.60
8.2.290.0120.00622.29
8.2.280.0030.00518.26
8.2.270.0090.00920.83
8.2.260.0100.00717.05
8.2.250.0100.00618.52
8.2.240.0090.00016.61
8.2.230.0050.00520.94
8.2.220.0000.00824.06
8.2.210.0100.00026.77
8.2.200.0030.00618.88
8.2.190.0100.01018.66
8.2.180.0200.00318.18
8.2.170.0170.00319.13
8.2.160.0070.01022.96
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00020.95
8.2.120.0050.00326.35
8.2.110.0040.00421.96
8.2.100.0040.00717.84
8.2.90.0050.00317.63
8.2.80.0000.00818.81
8.2.70.0000.00817.80
8.2.60.0050.00318.03
8.2.50.0000.00818.10
8.2.40.0040.00419.35
8.2.30.0040.00420.62
8.2.20.0000.00717.96
8.2.10.0040.00417.92
8.2.00.0030.00517.91
8.1.330.0120.00716.75
8.1.320.0140.00616.25
8.1.310.0140.00016.75
8.1.300.0110.00716.81
8.1.290.0030.00630.84
8.1.280.0120.00625.92
8.1.270.0030.00520.18
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00019.05
8.1.230.0080.00317.89
8.1.220.0030.00617.77
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00917.53
8.1.180.0030.00518.10
8.1.170.0080.00018.57
8.1.160.0040.00418.81
8.1.150.0030.00518.73
8.1.140.0000.00720.67
8.1.130.0030.00320.13
8.1.120.0080.00017.38
8.1.110.0040.00417.38
8.1.100.0030.00517.30
8.1.90.0000.00817.36
8.1.80.0030.00517.36
8.1.70.0000.00817.37
8.1.60.0000.00817.53
8.1.50.0050.00217.56
8.1.40.0080.00417.50
8.1.30.0030.00517.56
8.1.20.0070.00017.65
8.1.10.0000.00717.44
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0030.00816.63
8.0.280.0020.00518.31
8.0.270.0000.00717.29
8.0.260.0030.00318.31
8.0.250.0070.00016.82
8.0.240.0040.00416.91
8.0.230.0000.00816.93
8.0.220.0090.00016.85
8.0.210.0070.00016.80
8.0.200.0070.00016.89
8.0.190.0000.00716.94
8.0.180.0040.00416.84
8.0.170.0060.00316.81
8.0.160.0000.00716.90
8.0.150.0040.00416.83
8.0.140.0030.00516.88
8.0.130.0000.00613.32
8.0.120.0020.00516.85
8.0.110.0040.00416.86
8.0.100.0040.00416.79
8.0.90.0050.00216.76
8.0.80.0100.00916.89
8.0.70.0070.00016.91
8.0.60.0080.00016.68
8.0.50.0050.00316.86
8.0.30.0100.00917.13
8.0.20.0160.00317.42
8.0.10.0070.00017.05
8.0.00.0100.00916.87
7.4.330.0000.00515.55
7.4.320.0030.00316.48
7.4.300.0050.00216.61
7.4.290.0070.00016.48
7.4.280.0070.00316.49
7.4.270.0030.00316.51
7.4.260.0040.00416.51
7.4.250.0000.00716.53
7.4.240.0070.00016.51
7.4.230.0000.00716.62
7.4.220.0050.00316.66
7.4.210.0100.00716.57
7.4.200.0070.00016.68
7.4.160.0070.00916.50
7.4.140.0090.00917.86
7.4.130.0130.01016.47
7.4.120.0130.00616.55
7.4.110.0080.00816.46
7.4.100.0100.00716.41
7.4.90.0160.00316.52
7.4.80.0090.00919.39
7.4.70.0100.00716.52
7.4.60.0060.01116.34
7.4.50.0110.00416.72
7.4.40.0070.01416.41
7.4.00.0080.00615.09
7.3.330.0020.00213.28
7.3.320.0040.00413.49
7.3.310.0040.00416.30
7.3.300.0070.00016.38
7.3.290.0030.00316.46
7.3.280.0070.01016.40
7.3.260.0100.00916.44
7.3.240.0100.01016.48
7.3.230.0100.00616.50
7.3.210.0060.01816.34
7.3.200.0100.00616.50
7.3.190.0090.01216.48
7.3.180.0160.00016.44
7.3.170.0060.00916.56
7.3.160.0060.01116.68
7.3.120.0070.00714.63
7.3.110.0130.00514.89
7.3.100.0060.00914.96
7.3.90.0100.00315.08
7.3.80.0080.00614.82
7.3.70.0100.00314.84
7.3.60.0000.01414.75
7.3.50.0140.00314.84
7.3.40.0070.00314.76
7.3.30.0070.00715.00
7.3.20.0090.00016.69
7.3.10.0060.00316.71
7.3.00.0060.00616.77
7.2.330.0100.01016.31
7.2.320.0150.00716.38
7.2.310.0030.01316.36
7.2.300.0070.01016.45
7.2.290.0090.00616.64
7.2.250.0000.01614.90
7.2.240.0070.01115.02
7.2.230.0080.00815.18
7.2.220.0000.01614.58
7.2.210.0000.01514.79
7.2.200.0070.00715.03
7.2.190.0060.01014.91
7.2.180.0070.00614.96
7.2.170.0080.00415.12
7.2.160.0070.00714.86
7.2.150.0000.01916.89
7.2.140.0030.00916.91
7.2.130.0080.00816.89
7.2.120.0030.01216.88
7.2.110.0060.00616.70
7.2.100.0240.00915.64
7.2.90.3140.00615.92
7.2.80.2780.01015.96
7.2.70.2660.00315.91
7.2.60.3000.00615.82
7.2.50.3010.00315.83
7.2.40.3020.00715.81
7.2.30.2540.00815.81
7.2.20.2940.00915.85
7.2.10.2150.00815.95
7.2.00.2850.00615.76
7.1.330.0070.01015.74
7.1.320.0060.00315.86
7.1.310.0030.01016.00
7.1.300.0040.01415.78
7.1.290.0030.01015.85
7.1.280.0100.00015.91
7.1.270.0000.01415.66
7.1.260.0040.00715.63
7.1.250.0040.01115.76
7.1.240.0040.00415.53
7.1.230.0000.01415.80
7.1.220.0310.00514.76
7.1.210.0150.00615.04
7.1.200.3070.00414.90
7.1.190.3070.00614.85
7.1.180.2570.00714.82
7.1.170.2620.00614.65
7.1.160.2330.00515.00
7.1.150.2500.00914.87
7.1.140.2260.00814.78
7.1.130.2350.00514.80
7.1.120.2740.00014.81
7.1.110.2640.01014.66
7.1.100.2740.00714.90
7.1.90.2850.00714.78
7.1.80.1410.00514.81
7.1.70.0980.00614.92
7.1.60.0230.00823.77
7.1.50.0190.01323.92
7.1.40.4050.01223.67
7.1.30.5550.00923.87
7.1.20.4380.01223.86
7.1.10.4590.00514.92
7.1.00.2800.00514.83
7.0.330.0040.01115.34
7.0.320.0050.00815.32
7.0.310.0000.01215.18
7.0.300.0060.00615.32
7.0.290.0000.00815.43
7.0.280.0090.00615.57
7.0.270.0060.00615.41
7.0.260.0130.00015.21
7.0.250.0120.00315.64
7.0.240.0060.01315.52
7.0.230.0100.00315.42
7.0.220.0040.00715.39
7.0.210.0030.00915.23
7.0.200.0080.01215.31
7.0.190.0130.00015.60
7.0.180.0060.00315.25
7.0.170.0030.00915.33
7.0.160.0100.00315.54
7.0.150.0040.01115.26
7.0.140.0000.00815.52
7.0.130.0060.00615.46
7.0.120.0060.00615.39
7.0.110.0030.00715.49
7.0.100.0080.00315.31
7.0.90.0070.00715.27
7.0.80.0040.01115.39
7.0.70.0030.00715.55
7.0.60.0030.00915.45
7.0.50.0000.01415.64
7.0.40.0090.00313.48
7.0.30.0100.00013.15
7.0.20.0030.01013.43
7.0.10.0030.00613.59
7.0.00.0070.00713.52
5.6.400.0090.00914.59
5.6.390.0060.00914.20
5.6.380.0060.00814.55
5.6.370.0030.01014.18
5.6.360.0000.00814.38
5.6.350.0080.00414.23
5.6.340.0060.01214.51
5.6.330.0030.01014.19
5.6.320.0030.01714.66
5.6.310.0140.00014.61
5.6.300.0070.01014.32
5.6.290.0120.00014.24
5.6.280.0070.00714.58
5.6.270.0000.00814.31
5.6.260.0000.00814.40
5.6.250.0060.00314.50
5.6.240.0000.01314.48
5.6.230.0040.00414.40
5.6.220.0090.00014.71
5.6.210.0070.00714.46
5.6.200.0070.00714.45
5.6.190.0050.00514.56
5.6.180.0000.01314.20
5.6.170.0000.01214.41
5.6.160.0140.00014.21
5.6.150.0030.00914.23
5.6.140.0030.00514.25
5.6.130.0110.00414.14
5.6.120.0060.00614.20
5.6.110.0030.01114.42
5.6.100.0080.00414.39
5.6.90.0030.00514.27
5.6.80.0070.00714.20
5.6.70.0060.00314.44
5.6.60.0060.00914.11
5.6.50.0030.01014.50
5.6.40.0050.00314.16
5.6.30.0090.00914.05
5.6.20.0060.00314.15
5.6.10.0080.00414.44
5.6.00.0040.00414.28

preferences:
57.65 ms | 403 KiB | 5 Q