3v4l.org

run code in 300+ PHP versions simultaneously
<?php $displays = array( array( 'position' => 0, ), array( 'position' => new stdClass, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { return $display1['position'] < $display2['position'] ? -1 : 1; } return 0; });

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.0100.01018.56
8.3.50.0070.00721.20
8.3.40.0040.01118.81
8.3.30.0170.00019.14
8.3.20.0000.00720.20
8.3.10.0050.00321.95
8.3.00.0000.00722.50
8.2.180.0080.01116.75
8.2.170.0100.00322.96
8.2.160.0100.00719.37
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.22
8.2.110.0100.00021.93
8.2.100.0040.00819.76
8.2.90.0000.00919.29
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0000.00818.16
8.2.50.0000.00818.07
8.2.40.0040.00420.07
8.2.30.0040.00418.04
8.2.20.0040.00417.63
8.2.10.0070.00017.73
8.2.00.0060.00317.67
8.1.280.0130.00925.92
8.1.270.0000.00821.86
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.98
8.1.230.0060.00619.04
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.47
8.1.190.0050.00317.53
8.1.180.0030.00518.79
8.1.170.0040.00418.67
8.1.160.0040.00422.05
8.1.150.0030.00518.64
8.1.140.0000.00817.58
8.1.130.0000.00817.89
8.1.120.0070.00017.34
8.1.110.0000.00717.51
8.1.100.0030.00317.49
8.1.90.0030.00417.45
8.1.80.0030.00417.34
8.1.70.0000.00717.42
8.1.60.0040.00417.60
8.1.50.0040.00417.54
8.1.40.0000.00817.51
8.1.30.0050.00317.52
8.1.20.0040.00417.58
8.1.10.0040.00417.45
8.1.00.0000.00717.42
8.0.300.0030.00318.77
8.0.290.0050.00317.16
8.0.280.0040.00418.48
8.0.270.0070.00017.14
8.0.260.0000.00716.88
8.0.250.0000.00716.96
8.0.240.0000.00717.05
8.0.230.0020.00516.93
8.0.220.0030.00316.86
8.0.210.0030.00317.03
8.0.200.0060.00017.00
8.0.190.0030.00517.06
8.0.180.0000.00717.04
8.0.170.0040.00416.95
8.0.160.0040.00416.88
8.0.150.0050.00216.90
8.0.140.0040.00416.95
8.0.130.0030.00313.38
8.0.120.0080.00016.93
8.0.110.0040.00416.98
8.0.100.0000.00717.02
8.0.90.0040.00416.90
8.0.80.0000.02216.98
8.0.70.0080.00016.90
8.0.60.0000.00817.02
8.0.50.0070.00016.86
8.0.30.0090.01117.14
8.0.20.0140.00917.40
8.0.10.0000.00717.11
8.0.00.0110.00616.63
7.4.330.0020.00215.00
7.4.320.0000.00616.66
7.4.300.0040.00416.65
7.4.290.0030.00316.53
7.4.280.0030.00316.45
7.4.270.0070.00016.46
7.4.260.0000.00816.49
7.4.250.0030.00316.49
7.4.240.0040.00416.52
7.4.230.0040.00416.41
7.4.220.0030.01616.71
7.4.210.0070.00716.62
7.4.200.0070.00016.67
7.4.190.0080.00016.77
7.4.160.0060.00916.61
7.4.150.0060.01617.40
7.4.140.0090.01217.86
7.4.130.0110.00716.46
7.4.120.0090.00916.59
7.4.110.0110.00516.63
7.4.100.0060.01016.42
7.4.90.0080.00816.57
7.4.80.0070.01019.39
7.4.70.0110.00516.49
7.4.60.0150.00616.65
7.4.50.0030.00516.42
7.4.40.0070.01122.77
7.4.30.0060.00916.64
7.4.00.0130.00415.02
7.3.330.0000.00713.14
7.3.320.0000.00513.38
7.3.310.0040.00416.39
7.3.300.0000.00616.40
7.3.290.0070.01316.26
7.3.280.0090.00816.32
7.3.270.0070.01017.40
7.3.260.0220.00016.48
7.3.250.0130.00816.50
7.3.240.0100.00616.40
7.3.230.0150.00616.39
7.3.210.0070.01016.64
7.3.200.0140.00719.39
7.3.190.0120.00616.34
7.3.180.0060.01316.48
7.3.170.0060.01016.49
7.3.160.0090.00616.41
7.3.120.0060.00814.65
7.3.110.0080.00814.57
7.3.100.0100.00314.94
7.3.90.0050.00714.90
7.3.80.0050.00614.66
7.3.70.0110.00114.63
7.3.60.0060.00414.62
7.3.50.0030.00614.55
7.3.40.0060.00614.41
7.3.30.0020.01114.77
7.3.20.0050.01016.54
7.3.10.0030.01016.59
7.3.00.0080.00216.61
7.2.330.0000.01716.67
7.2.320.0090.01216.60
7.2.310.0160.00716.85
7.2.300.0060.01116.65
7.2.290.0030.01316.57
7.2.250.0030.01315.16
7.2.240.0100.00714.67
7.2.230.0060.00815.02
7.2.220.0070.00715.06
7.2.210.0030.00914.94
7.2.200.0040.01114.98
7.2.190.0050.00914.94
7.2.180.0040.00814.93
7.2.170.0070.01014.72
7.2.160.0100.00614.58
7.2.150.0040.01116.73
7.2.140.0070.00416.68
7.2.130.0070.01016.78
7.2.120.0040.00816.56
7.2.110.0070.01016.48
7.2.100.0090.00616.68
7.2.90.0000.01416.81
7.2.80.0030.01216.47
7.2.70.0110.00416.94
7.2.60.0060.00916.95
7.2.50.0060.00916.91
7.2.40.0130.00316.94
7.2.30.0100.00316.94
7.2.20.0030.01316.57
7.2.10.0060.00916.95
7.2.00.0030.01118.23
7.1.330.0060.00715.80
7.1.320.0020.01215.88
7.1.310.0080.00615.82
7.1.300.0050.00915.65
7.1.290.0050.00815.73
7.1.280.0050.00715.68
7.1.270.0030.00915.87
7.1.260.0030.01015.61
7.1.250.0070.00715.79
7.1.100.0040.00718.24
7.1.70.0030.01016.95
7.1.60.0100.01619.82
7.1.50.0030.01716.73
7.1.00.0030.07722.35
7.0.200.0050.00516.48
7.0.140.0070.07022.09
7.0.60.0170.08019.94
7.0.50.0070.08017.88
7.0.40.0200.07720.02
7.0.30.0200.04020.22
7.0.20.0200.04720.45
7.0.10.0070.08720.15
7.0.00.0070.09020.07
5.6.280.0130.08321.08
5.6.210.0030.04020.61
5.6.200.0100.08318.15
5.6.190.0000.04720.46
5.6.180.0300.08020.35
5.6.170.0300.07020.55
5.6.160.0030.07320.71
5.6.150.0100.06718.14
5.6.140.0170.04318.15
5.6.130.0130.03718.21
5.6.120.0070.08321.04
5.6.110.0000.04321.04
5.6.100.0070.08721.01
5.6.90.0030.09021.04
5.6.80.0100.05320.33
5.5.350.4270.04320.44
5.5.340.0030.08317.99
5.5.330.0100.05720.37
5.5.320.0370.07020.38
5.5.310.0400.07320.39
5.5.300.0070.05018.02
5.5.290.0070.07717.95
5.5.280.0000.08320.98
5.5.270.0100.05020.87
5.5.260.0130.07320.87
5.5.250.0130.08720.71
5.5.240.0070.07320.28
5.4.450.0770.04719.42
5.4.440.0800.05319.55
5.4.430.0830.04319.54
5.4.420.1000.03319.30
5.4.410.0730.05019.39
5.4.400.0970.03019.16
5.4.390.1270.04319.00
5.4.380.0130.08318.46
5.4.370.0100.06018.77
5.4.360.0200.04318.62
5.4.350.0170.05018.79
5.4.340.0100.06018.63
5.4.320.0060.03712.51
5.4.310.0080.04212.50
5.4.300.0090.04112.50
5.4.290.0070.03712.50
5.4.280.0030.03912.40
5.4.270.0100.04012.40
5.4.260.0070.05718.92
5.4.250.0130.05018.82
5.4.240.0030.08318.93
5.4.230.0070.07318.99
5.4.220.0200.06718.92
5.4.210.0130.06018.95
5.4.200.0130.05318.89
5.4.190.0130.07718.74
5.4.180.0100.07718.96
5.4.170.0200.04718.74
5.4.160.0130.04718.97
5.4.150.0100.06018.95
5.4.140.0130.07016.39
5.4.130.0200.05716.46
5.4.120.0030.05716.61
5.4.110.0130.04716.48
5.4.100.0070.05016.32
5.4.90.0070.04716.52
5.4.80.0130.06716.46
5.4.70.0070.07316.48
5.4.60.0100.04716.45
5.4.50.0030.07316.43
5.4.40.0000.05316.38
5.4.30.0070.05016.43
5.4.20.0070.04716.47
5.4.10.0100.04716.33
5.4.00.0030.05315.83
5.3.290.0070.04012.80
5.3.280.0130.04714.68
5.3.270.0230.06014.64
5.3.260.0070.05714.79
5.3.250.0130.06314.83
5.3.240.0100.04714.44
5.3.230.0070.05314.68
5.3.220.0100.07314.71
5.3.210.0070.05714.55
5.3.200.0030.05714.65
5.3.190.0070.05714.73
5.3.180.0100.05314.65
5.3.170.0130.04714.55
5.3.160.0000.05714.47
5.3.150.0070.07714.66
5.3.140.0070.07314.63
5.3.130.0100.04714.54
5.3.120.0130.05014.72
5.3.110.0170.07014.54
5.3.100.0100.07013.94
5.3.90.0070.05014.10
5.3.80.0000.05714.11
5.3.70.0200.04014.09
5.3.60.0170.04314.19
5.3.50.0030.07313.94
5.3.40.0030.05313.92
5.3.30.0070.05013.73
5.3.20.0070.05013.60
5.3.10.0070.05013.73
5.3.00.0070.04713.80
5.2.170.0030.04311.16
5.2.160.0070.05711.06
5.2.150.0070.04711.24
5.2.140.0070.04311.14
5.2.130.0100.04711.00
5.2.120.0070.05711.10
5.2.110.0100.03311.11
5.2.100.0100.03711.19
5.2.90.0100.03311.25
5.2.80.0070.04311.24
5.2.70.0030.04311.20
5.2.60.0100.05710.97
5.2.50.0100.04011.02
5.2.40.0100.03310.88
5.2.30.0070.04010.98
5.2.20.0030.04710.88
5.2.10.0100.04010.94
5.2.00.0070.04010.70
5.1.60.0030.05010.19
5.1.50.0100.0339.92
5.1.40.0100.04310.19
5.1.30.0100.03710.43
5.1.20.0000.04010.43
5.1.10.0030.03710.30
5.1.00.0100.02710.13
5.0.50.0070.0278.57
5.0.40.0070.0238.44
5.0.30.0030.0408.11
5.0.20.0130.0178.22
5.0.10.0000.0308.00
5.0.00.0070.0508.39
4.4.90.0000.0277.23
4.4.80.0030.0207.23
4.4.70.0000.0237.23
4.4.60.0070.0177.23
4.4.50.0030.0207.23
4.4.40.0030.0307.23
4.4.30.0030.0207.23
4.4.20.0030.0207.23
4.4.10.0030.0207.23
4.4.00.0000.0377.23
4.3.110.0000.0237.23
4.3.100.0070.0237.23
4.3.90.0070.0177.23
4.3.80.0070.0307.23
4.3.70.0030.0177.23
4.3.60.0030.0207.23
4.3.50.0070.0207.23
4.3.40.0030.0307.23
4.3.30.0000.0307.23
4.3.20.0070.0277.23
4.3.10.0000.0237.23
4.3.00.0030.01013.16

preferences:
30.44 ms | 401 KiB | 5 Q