3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = array(array('key'=>'val')); $two = array(array('key1'=>'val1'),array('key2'=>'val2')); array_unshift($one, $two); print_r($one + $two);

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.40.0170.00318.89
8.3.30.0070.00718.95
8.3.20.0000.00720.16
8.3.10.0080.00021.98
8.3.00.0050.00322.37
8.2.170.0070.00722.96
8.2.160.0130.00020.41
8.2.150.0080.00024.18
8.2.140.0110.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.38
8.2.110.0040.00422.25
8.2.100.0080.00319.45
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0080.00017.75
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0120.00018.12
8.2.30.0070.00018.00
8.2.20.0040.00417.50
8.2.10.0000.00717.52
8.2.00.0060.00317.55
8.1.270.0000.00822.18
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0110.00019.04
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.22
8.1.190.0000.00817.29
8.1.180.0050.00318.50
8.1.170.0030.00518.46
8.1.160.0050.00221.81
8.1.150.0000.01118.47
8.1.140.0030.00517.25
8.1.130.0000.00617.72
8.1.120.0000.00717.28
8.1.110.0080.00017.30
8.1.100.0000.00717.44
8.1.90.0070.00017.27
8.1.80.0000.00717.38
8.1.70.0000.00817.28
8.1.60.0040.00417.54
8.1.50.0070.00017.53
8.1.40.0000.00717.44
8.1.30.0000.00717.45
8.1.20.0030.00517.57
8.1.10.0040.00417.52
8.1.00.0050.00217.34
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0030.00318.36
8.0.270.0000.00717.06
8.0.260.0030.00316.81
8.0.250.0030.00316.98
8.0.240.0050.00216.95
8.0.230.0000.00716.83
8.0.220.0030.00316.77
8.0.210.0040.00416.77
8.0.200.0070.00316.91
8.0.190.0000.00716.93
8.0.180.0020.00516.97
8.0.170.0040.00416.80
8.0.160.0050.00316.86
8.0.150.0040.00416.79
8.0.140.0000.00716.73
8.0.130.0030.00313.31
8.0.120.0000.00716.93
8.0.110.0040.00416.98
8.0.100.0040.00416.73
8.0.90.0000.00716.77
8.0.80.0060.00916.83
8.0.70.0040.00416.70
8.0.60.0040.00416.92
8.0.50.0000.00716.77
8.0.30.0110.01117.04
8.0.20.0090.00817.40
8.0.10.0050.00216.87
8.0.00.0180.00716.76
7.4.330.0060.00015.00
7.4.320.0030.00316.52
7.4.300.0000.00816.42
7.4.290.0030.00316.51
7.4.280.0030.00316.54
7.4.270.0040.00416.41
7.4.260.0030.00316.47
7.4.250.0070.00016.39
7.4.240.0040.00416.53
7.4.230.0070.00016.27
7.4.220.0070.01116.63
7.4.210.0030.01416.49
7.4.200.0030.00316.41
7.4.190.0030.00516.60
7.4.160.0100.00716.30
7.4.150.0100.00717.40
7.4.140.0110.00817.86
7.4.130.0120.00516.58
7.4.120.0090.00916.50
7.4.110.0100.01316.43
7.4.100.0120.00616.47
7.4.90.0150.00816.43
7.4.80.0030.01519.39
7.4.70.0060.01116.46
7.4.60.0090.00816.52
7.4.50.0040.00416.30
7.4.40.0090.00322.77
7.4.30.0060.00916.25
7.4.00.0080.01014.64
7.3.330.0000.00512.95
7.3.320.0050.00013.18
7.3.310.0000.00916.25
7.3.300.0000.00716.08
7.3.290.0070.00716.13
7.3.280.0090.00616.21
7.3.270.0070.01017.40
7.3.260.0090.00916.18
7.3.250.0090.00916.36
7.3.240.0130.00416.14
7.3.230.0030.01516.39
7.3.210.0090.01616.15
7.3.200.0100.00619.39
7.3.190.0060.01016.40
7.3.180.0000.01616.55
7.3.170.0040.01216.53
7.3.160.0110.00716.21
7.3.120.0050.01214.69
7.3.110.0070.00914.76
7.3.100.0040.01014.76
7.3.90.0050.00914.54
7.3.80.0050.01014.69
7.3.70.0080.00414.66
7.3.60.0050.01114.72
7.3.50.0030.00714.73
7.3.40.0070.00714.65
7.3.30.0040.00814.71
7.3.20.0060.00516.36
7.3.10.0100.00616.51
7.3.00.0070.00516.43
7.2.330.0100.00716.32
7.2.320.0070.01016.66
7.2.310.0090.01316.47
7.2.300.0090.00916.63
7.2.290.0000.01616.34
7.2.250.0100.01015.10
7.2.240.0070.00914.81
7.2.230.0060.01114.97
7.2.220.0030.01114.93
7.2.210.0060.00614.83
7.2.200.0070.00915.04
7.2.190.0070.00914.83
7.2.180.0070.00614.88
7.2.170.0060.00615.05
7.2.160.0000.01514.77
7.2.150.0070.01016.81
7.2.140.0080.00416.70
7.2.130.0080.01216.81
7.2.120.0080.01016.54
7.2.110.0070.00816.54
7.2.100.0110.01116.64
7.2.90.0060.00816.52
7.2.80.0070.00516.49
7.2.70.0130.00816.68
7.2.60.0080.00616.62
7.2.50.0070.00716.50
7.2.40.0130.00616.58
7.2.30.0110.00516.59
7.2.20.0060.01216.68
7.2.10.0100.00916.51
7.2.00.0100.01116.69
7.1.330.0050.01015.83
7.1.320.0040.00915.71
7.1.310.0070.00915.82
7.1.300.0030.01215.64
7.1.290.0070.00815.57
7.1.280.0020.00915.76
7.1.270.0070.00515.63
7.1.260.0030.00915.80
7.1.250.0110.00515.49
7.1.200.0000.01015.74
7.1.100.0050.00517.80
7.1.70.0030.00716.95
7.1.60.0140.01019.82
7.1.50.0110.01416.87
7.1.00.0070.07322.43
7.0.200.0040.00416.67
7.0.140.0070.07321.99
7.0.60.0070.06720.02
7.0.50.0070.08017.95
7.0.40.0030.05320.02
7.0.30.0400.06720.05
7.0.20.0370.05720.30
7.0.10.0300.04020.07
7.0.00.0070.04020.22
5.6.280.0070.07021.06
5.6.210.0170.05720.53
5.6.200.0100.08718.18
5.6.190.0100.08720.57
5.6.180.4470.04320.63
5.6.170.0300.06020.52
5.6.160.0030.04020.54
5.6.150.0030.05718.15
5.6.140.0070.07318.14
5.6.130.0170.04318.18
5.6.120.0030.04320.97
5.6.110.0100.08021.08
5.6.100.0200.07320.88
5.6.90.0100.08320.96
5.6.80.0070.05320.38
5.6.70.4430.03320.35
5.5.350.0170.03720.37
5.5.340.0070.04718.02
5.5.330.0170.08020.43
5.5.320.0330.03720.30
5.5.310.0130.04320.32
5.5.300.0000.04017.99
5.5.290.0070.08018.08
5.5.280.0100.06720.86
5.5.270.0170.07720.95
5.5.260.0070.06020.92
5.5.250.0170.07320.45
5.5.240.0170.04320.11
5.4.450.0270.04319.31
5.4.440.0500.08319.71
5.4.430.0000.06319.41
5.4.420.0100.05319.31
5.4.410.0130.05019.27
5.4.400.0130.05018.53
5.4.390.0000.06018.58
5.4.380.0230.06718.78
5.4.370.0170.05718.68
5.4.360.0200.04718.57
5.4.350.0100.06718.50
5.4.340.0170.05718.70
5.4.320.0060.03612.48
5.4.310.0050.04212.47
5.4.300.0030.04012.48
5.4.290.0090.04012.48
5.4.280.0170.07712.34
5.4.270.0150.08212.34
5.4.260.0080.07112.34
5.4.250.0180.07212.34
5.4.240.0180.07912.34
5.4.230.0170.08712.34
5.4.220.0100.03612.33
5.4.210.0090.03712.34
5.4.200.0090.04212.33
5.4.190.0080.03912.33
5.4.180.0060.04112.33
5.4.170.0130.03812.34
5.4.160.0080.04312.34
5.4.150.0080.04212.33
5.4.140.0190.10212.02
5.4.130.0200.10112.00
5.4.120.0100.04611.96
5.4.110.0040.04511.96
5.4.100.0060.03711.96
5.4.90.0060.04011.96
5.4.80.0080.03811.96
5.4.70.0150.03011.96
5.4.60.0020.04411.95
5.4.50.0090.05211.95
5.4.40.0180.07011.95
5.4.30.0180.05911.94
5.4.20.0120.05011.94
5.4.10.0110.05011.94
5.4.00.0110.05911.43
5.3.290.0110.03912.80
5.3.280.0100.07112.70
5.3.270.0100.06012.72
5.3.260.0160.13512.72
5.3.250.0190.08912.72
5.3.240.0170.07712.72
5.3.230.0140.13112.71
5.3.220.0190.10312.68
5.3.210.0180.07812.68
5.3.200.0160.07612.68
5.3.190.0400.10412.68
5.3.180.0230.12212.67
5.3.170.0190.12312.66
5.3.160.0210.10912.68
5.3.150.0140.07412.67
5.3.140.0160.07512.66
5.3.130.0150.08112.66
5.3.120.0080.08112.66
5.3.110.0080.05412.65
5.3.100.0100.04712.12
5.3.90.0090.05012.09
5.3.80.0110.04812.07
5.3.70.0070.06412.07
5.3.60.0120.05712.06
5.3.50.0050.06212.00
5.3.40.0080.06812.00
5.3.30.0140.05511.95
5.3.20.0120.05311.73
5.3.10.0070.05911.69
5.3.00.0130.09311.68
5.2.170.0160.0769.17
5.2.160.0080.0459.18
5.2.150.0140.0909.17
5.2.140.0120.0719.17
5.2.130.0110.0479.13
5.2.120.0090.0369.13
5.2.110.0120.0569.14
5.2.100.0120.0659.14
5.2.90.0140.0409.13
5.2.80.0110.0459.13
5.2.70.0100.0529.14
5.2.60.0050.0499.08
5.2.50.0090.0489.06
5.2.40.0110.0459.03
5.2.30.0110.0479.01
5.2.20.0200.0439.00
5.2.10.0090.0478.91
5.2.00.0080.0488.77
5.1.60.0160.0678.04
5.1.50.0170.0658.04
5.1.40.0140.0468.02
5.1.30.0080.0838.38
5.1.20.0080.0388.40
5.1.10.0110.0408.12
5.1.00.0100.0638.12
5.0.50.0190.0616.60
5.0.40.0110.0486.46
5.0.30.0050.0446.27
5.0.20.0080.0276.25
5.0.10.0060.0316.22
5.0.00.0060.0466.21
4.4.90.0080.0224.78
4.4.80.0060.0244.75
4.4.70.0060.0254.75
4.4.60.0080.0244.75
4.4.50.0060.0274.77
4.4.40.0110.0414.71
4.4.30.0120.0324.76
4.4.20.0030.0274.85
4.4.10.0090.0364.85
4.4.00.0140.0684.76
4.3.110.0060.0334.67
4.3.100.0050.0204.66
4.3.90.0040.0204.63
4.3.80.0050.0324.59
4.3.70.0090.0184.63
4.3.60.0080.0374.63
4.3.50.0090.0274.63
4.3.40.0080.0454.54
4.3.30.0030.0273.27
4.3.20.0040.0273.25
4.3.10.0020.0293.21
4.3.00.0000.01715.57

preferences:
40.11 ms | 400 KiB | 5 Q