3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a[] = array('name' => 'a1', 'sort'=>3); $a[] = array('name' => 'b2', 'sort'=>2); $a[] = array('name' => 'c3', 'sort'=>1); print_r($a);

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.0120.00918.30
8.3.50.0070.00921.08
8.3.40.0110.00418.89
8.3.30.0070.00720.17
8.3.20.0070.00020.14
8.3.10.0040.00422.09
8.3.00.0000.00722.52
8.2.180.0150.00318.13
8.2.170.0090.00622.96
8.2.160.0030.01021.91
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.71
8.2.110.0080.00022.16
8.2.100.0120.00017.78
8.2.90.0000.00819.09
8.2.80.0040.00419.40
8.2.70.0050.00317.25
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0040.00419.49
8.2.20.0000.00717.59
8.2.10.0000.00717.68
8.2.00.0040.00417.53
8.1.280.0080.00825.92
8.1.270.0060.00323.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00023.75
8.1.230.0040.00719.15
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.43
8.1.180.0040.00419.01
8.1.170.0040.00418.57
8.1.160.0040.00418.87
8.1.150.0000.00718.57
8.1.140.0000.00717.29
8.1.130.0070.00017.89
8.1.120.0000.00817.38
8.1.110.0000.00717.40
8.1.100.0040.00417.27
8.1.90.0000.00717.37
8.1.80.0000.00717.39
8.1.70.0030.00317.36
8.1.60.0060.00317.40
8.1.50.0030.00617.41
8.1.40.0040.00417.43
8.1.30.0040.00417.62
8.1.20.0000.00917.64
8.1.10.0000.00817.44
8.1.00.0060.00317.26
8.0.300.0050.00218.77
8.0.290.0000.00717.05
8.0.280.0030.00318.30
8.0.270.0070.00017.22
8.0.260.0050.00316.75
8.0.250.0040.00416.78
8.0.240.0000.00816.77
8.0.230.0000.00716.78
8.0.220.0070.00016.81
8.0.210.0000.00716.71
8.0.200.0030.00316.84
8.0.190.0000.00716.89
8.0.180.0000.00716.78
8.0.170.0040.00416.91
8.0.160.0000.00716.66
8.0.150.0070.00016.74
8.0.140.0000.00716.81
8.0.130.0030.00313.20
8.0.120.0000.00716.77
8.0.110.0000.00716.85
8.0.100.0030.00616.68
8.0.90.0050.00216.72
8.0.80.0130.00316.74
8.0.70.0040.00416.65
8.0.60.0030.00516.80
8.0.50.0000.00716.68
8.0.30.0080.01017.08
8.0.20.0090.01317.40
8.0.10.0040.00416.91
8.0.00.0120.00916.70
7.4.330.0050.00015.01
7.4.320.0000.00716.41
7.4.300.0040.00416.48
7.4.290.0000.00716.23
7.4.280.0000.00716.31
7.4.270.0040.00416.28
7.4.260.0050.00013.14
7.4.250.0030.00316.32
7.4.240.0000.00716.36
7.4.230.0040.00416.50
7.4.220.0100.01316.44
7.4.210.0090.00716.42
7.4.200.0030.00516.49
7.4.190.0030.00316.59
7.4.160.0030.01316.34
7.4.150.0120.00817.40
7.4.140.0070.01017.86
7.4.130.0140.00416.53
7.4.120.0080.01116.54
7.4.110.0210.00016.20
7.4.100.0110.00516.47
7.4.90.0060.01316.43
7.4.80.0130.00619.39
7.4.70.0140.00816.39
7.4.60.0100.01016.39
7.4.50.0040.00416.39
7.4.40.0070.00722.77
7.4.30.0080.00816.32
7.4.00.0070.00714.90
7.3.330.0050.00012.96
7.3.320.0050.00013.04
7.3.310.0000.00616.05
7.3.300.0000.00716.10
7.3.290.0000.01416.14
7.3.280.0070.01216.21
7.3.270.0130.00317.40
7.3.260.0090.00916.20
7.3.250.0160.00416.14
7.3.240.0140.00316.26
7.3.230.0100.00716.39
7.3.210.0090.00616.14
7.3.200.0030.01316.23
7.3.190.0110.00616.25
7.3.180.0160.00716.37
7.3.170.0060.00816.35
7.3.160.0130.00916.26
7.3.120.0060.00614.51
7.2.330.0060.01316.42
7.2.320.0030.01316.41
7.2.310.0070.01416.41
7.2.300.0090.00616.55
7.2.290.0060.01216.28
7.2.60.0090.00616.67
7.2.00.0040.01219.22
7.1.200.0090.00015.82
7.1.100.0000.01317.89
7.1.70.0030.00617.19
7.1.60.0040.00719.29
7.1.50.0070.01316.82
7.1.00.0070.07322.30
7.0.200.0250.00414.89
7.0.140.0070.07022.18
7.0.60.0070.07719.78
7.0.50.0130.07017.86
7.0.40.0100.08720.09
7.0.30.0170.04320.17
7.0.20.0100.05320.06
7.0.10.0030.07320.11
7.0.00.0130.07020.33
5.6.280.0000.07020.77
5.6.210.0030.06720.47
5.6.200.0070.08018.20
5.6.190.0070.04320.69
5.6.180.0230.05020.33
5.6.170.0270.05720.47
5.6.160.0070.08720.50
5.6.150.0130.07018.16
5.6.140.0130.07318.20
5.6.130.0100.08018.22
5.6.120.0030.04321.00
5.6.110.0230.06320.98
5.6.100.0030.05021.00
5.6.90.0000.07721.00
5.6.80.0100.08020.41
5.5.350.2670.03720.34
5.5.340.0170.03718.00
5.5.330.0070.04320.18
5.5.320.0370.06320.32
5.5.310.0230.03320.26
5.5.300.0200.06717.98
5.5.290.0130.07318.03
5.5.280.0070.08320.76
5.5.270.0170.06720.96
5.5.260.0130.07720.63
5.5.250.0100.08320.68
5.5.240.0170.07320.15
5.4.450.0500.06719.25
5.4.440.0430.04319.42
5.4.430.0500.06319.27
5.4.420.0370.04319.50
5.4.410.0370.04319.44
5.4.400.0370.04319.09
5.4.390.0370.07319.24
5.4.380.0400.04319.22
5.4.370.0400.05718.84
5.4.360.0370.04719.15
5.4.350.0430.06719.00
5.4.340.0400.07018.88
5.4.320.0330.04719.09
5.4.310.0470.06019.16
5.4.300.0430.06718.95
5.4.290.0500.06318.98
5.4.280.0570.06018.86
5.4.270.0470.04019.07
5.4.260.0630.04019.19
5.4.250.0570.05719.07
5.4.240.0330.04019.21
5.4.230.0400.04719.11
5.4.220.0400.05319.09
5.4.210.0400.06319.30
5.4.200.0400.04019.18
5.4.190.0470.04019.07
5.4.180.0630.04719.15
5.4.170.0470.05018.83
5.4.160.0600.06319.09
5.4.150.0530.07018.97
5.4.140.0470.03716.32
5.4.130.0470.05016.66
5.4.120.0570.06316.67
5.4.110.0400.04316.55
5.4.100.0470.06316.46
5.4.90.0630.05016.47
5.4.80.0500.04716.54
5.4.70.0500.07016.52
5.4.60.0530.05316.54
5.4.50.0470.05316.52
5.4.40.0470.06316.16
5.4.30.0430.04016.51
5.4.20.0400.03716.53
5.4.10.0470.06716.53
5.4.00.0370.04015.96
5.3.290.0470.03014.80
5.3.280.0430.03314.70
5.3.270.0370.04014.75
5.3.260.0500.07014.82
5.3.250.0600.06014.67
5.3.240.0530.04314.67
5.3.230.0500.05714.58
5.3.220.0470.06314.53
5.3.210.0430.05714.57
5.3.200.0470.05714.63
5.3.190.0330.04014.53
5.3.180.0370.04314.57
5.3.170.0400.07314.64
5.3.160.0470.03714.55
5.3.150.0430.06014.63
5.3.140.0370.04314.62
5.3.130.0430.03014.45
5.3.120.0370.03714.59
5.3.110.0430.06314.56
5.3.100.0430.03714.00
5.3.90.0370.03713.98
5.3.80.0400.06714.02
5.3.70.0430.03713.94
5.3.60.0530.05713.93
5.3.50.0430.03713.91
5.3.40.0370.04313.84
5.3.30.0530.05313.92
5.3.20.0430.04313.70
5.3.10.0400.04713.55
5.3.00.0500.05713.64
5.2.170.0370.03012.21
5.2.160.0300.03312.21
5.2.150.0500.04712.21
5.2.140.0430.02312.21
5.2.130.0470.04312.21
5.2.120.0370.03312.21
5.2.110.0500.04712.21
5.2.100.0400.03712.21
5.2.90.0370.03312.21
5.2.80.0300.03012.21
5.2.70.0530.04712.21
5.2.60.0370.03012.21
5.2.50.0400.05712.21
5.2.40.0330.02712.21
5.2.30.0400.06712.21
5.2.20.0370.05712.21
5.2.10.0400.03012.21
5.2.00.0330.02312.21
5.1.60.0330.05312.21
5.1.50.0330.02312.21
5.1.40.0330.05012.21
5.1.30.0330.02312.21
5.1.20.0370.04712.21
5.1.10.0370.02712.21
5.1.00.0400.04012.21
5.0.50.0200.04312.21
5.0.40.0230.02312.21
5.0.30.0170.04012.21
5.0.20.0200.03012.21
5.0.10.0230.04012.21
5.0.00.0270.05312.21
4.4.90.0230.03012.21
4.4.80.0200.02012.21
4.4.70.0230.01312.21
4.4.60.0170.01712.21
4.4.50.0130.01712.21
4.4.40.0170.02312.21
4.4.30.0200.01712.21
4.4.20.0130.02312.21
4.4.10.0170.03312.21
4.4.00.0170.03012.21
4.3.110.0170.02312.21
4.3.100.0170.03012.21
4.3.90.0130.02012.21
4.3.80.0170.03012.21
4.3.70.0170.02712.21
4.3.60.0100.01712.21
4.3.50.0170.02012.21
4.3.40.0170.04012.21
4.3.30.0070.01712.21
4.3.20.0100.03312.21
4.3.10.0070.03712.21
4.3.00.0100.02012.21

preferences:
46.37 ms | 401 KiB | 5 Q