3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = [4,5,6]; $arr3 = [7,8,9]; $total = [$arr1,$arr2,$arr3]; var_dump( $total ); $total[0] = $arr3; $total[1] = $arr1; $total[2] = $arr2; var_dump( $total );

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.60.0140.00718.20
8.3.50.0070.00718.23
8.3.40.0090.00618.80
8.3.30.0040.01118.70
8.3.20.0070.00020.52
8.3.10.0090.00023.66
8.3.00.0060.00322.40
8.2.180.0070.00718.41
8.2.170.0070.00722.96
8.2.160.0070.00722.08
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00317.92
8.2.110.0100.00022.08
8.2.100.0090.00317.84
8.2.90.0050.00318.03
8.2.80.0080.00017.97
8.2.70.0080.00417.48
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0060.00618.35
8.2.30.0000.00718.04
8.2.20.0030.00517.99
8.2.10.0070.00019.21
8.2.00.0050.00217.99
8.1.280.0080.00825.92
8.1.270.0070.00020.85
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.46
8.1.230.0070.00420.87
8.1.220.0040.00417.76
8.1.210.0060.00318.90
8.1.200.0080.00017.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00818.72
8.1.160.0040.00418.82
8.1.150.0070.00018.80
8.1.140.0000.00720.23
8.1.130.0080.00020.26
8.1.120.0000.00717.52
8.1.110.0070.00017.45
8.1.100.0040.00417.47
8.1.90.0000.00717.33
8.1.80.0040.00417.34
8.1.70.0040.00417.38
8.1.60.0000.00817.58
8.1.50.0030.00617.50
8.1.40.0050.00517.51
8.1.30.0040.00417.53
8.1.20.0090.00017.55
8.1.10.0030.00617.55
8.1.00.0040.00417.52
8.0.300.0070.00020.03
8.0.290.0000.00716.63
8.0.280.0000.00718.36
8.0.270.0000.00716.71
8.0.260.0060.00018.48
8.0.250.0040.00416.83
8.0.240.0030.00317.00
8.0.230.0070.00016.94
8.0.220.0030.00516.89
8.0.210.0040.00416.86
8.0.200.0000.00716.93
8.0.190.0000.00716.83
8.0.180.0050.00316.88
8.0.170.0000.00816.87
8.0.160.0070.00316.91
8.0.150.0040.00416.84
8.0.140.0040.00416.91
8.0.130.0090.00013.27
8.0.120.0030.00516.82
8.0.110.0040.00416.80
8.0.100.0040.00416.68
8.0.90.0000.00716.79
8.0.80.0090.00616.88
8.0.70.0000.00716.95
8.0.60.0050.00316.90
8.0.50.0000.00716.79
8.0.30.0110.00817.04
8.0.20.0120.01216.98
8.0.10.0050.00316.88
8.0.00.0130.01016.83
7.4.330.0030.00315.55
7.4.320.0030.00316.59
7.4.300.0030.00316.57
7.4.290.0030.00316.34
7.4.280.0000.00816.60
7.4.270.0060.00316.49
7.4.260.0040.00716.58
7.4.250.0030.00316.45
7.4.240.0030.00516.59
7.4.230.0050.00216.40
7.4.220.0000.00716.34
7.4.210.0080.00916.57
7.4.200.0030.00316.63
7.4.160.0080.00916.44
7.4.140.0120.00917.86
7.4.130.0210.00816.45
7.4.120.0100.00816.59
7.4.110.0060.01616.56
7.4.100.0170.00716.51
7.4.90.0090.00916.51
7.4.80.0160.01019.39
7.4.70.0100.00716.34
7.4.60.0130.00316.52
7.4.50.0100.01016.50
7.4.40.0090.00916.59
7.4.10.0070.01014.92
7.4.00.0090.00714.75
7.3.330.0000.00513.00
7.3.320.0030.00313.09
7.3.310.0050.00316.32
7.3.300.0000.00716.17
7.3.290.0070.00016.28
7.3.280.0110.00616.22
7.3.260.0090.01016.46
7.3.240.0150.00716.30
7.3.230.0100.00716.20
7.3.210.0140.00816.65
7.3.200.0000.01716.22
7.3.190.0100.00616.71
7.3.180.0060.01216.55
7.3.170.0030.01716.41
7.3.160.0160.00316.34
7.3.130.0100.01014.85
7.3.120.0110.00714.86
7.3.110.0130.00614.90
7.3.100.0070.01014.51
7.3.90.0090.00614.65
7.3.80.0040.01114.76
7.3.70.0080.00814.73
7.3.60.0090.00614.73
7.3.50.0040.00714.83
7.3.40.0140.00314.82
7.3.30.0100.01014.62
7.3.20.3830.00715.16
7.3.10.4080.00615.13
7.3.00.4220.00415.10
7.2.330.0070.01416.53
7.2.320.0100.01416.32
7.2.310.0140.00316.40
7.2.300.0100.00716.38
7.2.290.0080.00816.41
7.2.260.0030.01614.99
7.2.250.0120.00614.75
7.2.240.0100.00714.82
7.2.230.0140.00014.96
7.2.220.0100.00715.04
7.2.210.0090.00614.89
7.2.200.0030.01014.96
7.2.190.0130.00315.00
7.2.180.0040.00714.93
7.2.170.0100.01014.99
7.2.160.0080.00714.79
7.2.150.4350.01015.33
7.2.140.4000.00915.22
7.2.130.4390.00615.32
7.2.120.3600.00815.20
7.2.110.3680.00615.34
7.2.100.3680.01115.21
7.2.90.3070.01015.31
7.2.80.3240.01015.30
7.2.70.3540.00715.32
7.2.60.3070.00815.20
7.2.50.3820.00615.13
7.2.40.2730.01115.14
7.2.30.3230.00815.32
7.2.20.2950.00915.26
7.2.10.2980.00615.20
7.2.00.2930.01015.20
7.1.330.0060.01215.54
7.1.320.0150.00415.83
7.1.310.0000.01515.51
7.1.300.0030.00615.90
7.1.290.0000.01215.63
7.1.280.0060.00915.68
7.1.270.3140.00914.30
7.1.260.2470.01014.48
7.1.250.4050.00414.35
7.1.240.0030.01015.64
7.1.230.0100.00015.95
7.1.220.0040.00415.94
7.1.210.0060.01015.95
7.1.200.0110.00715.66
7.1.190.0060.00915.64
7.1.180.0070.00716.00
7.1.170.0070.00715.70
7.1.160.0040.01115.75
7.1.150.0030.01015.71
7.1.140.0040.01115.96
7.1.130.0070.01015.73
7.1.120.0000.01515.59
7.1.110.0030.01415.89
7.1.100.0040.00815.98
7.1.90.0040.01115.92
7.1.80.0060.00915.64
7.1.70.0070.00315.68
7.1.60.0000.01615.74
7.1.50.0030.01315.57
7.1.40.0040.01115.77
7.1.30.0030.00915.94
7.1.20.0090.00615.80
7.1.10.0000.01815.99
7.1.00.0090.00915.61

preferences:
59.36 ms | 400 KiB | 5 Q