3v4l.org

run code in 300+ PHP versions simultaneously
<?php $displays = array( array( 'position' => 0, ), array( 'position' => 1, ), ); // Sort the displays. uasort($displays, function ($display1, $display2) { if ($display1['position'] != $display2['position']) { trigger_error('test'); 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.40.0070.00718.71
8.3.30.0150.00018.93
8.3.20.0040.00420.34
8.3.10.0000.00722.04
8.3.00.0000.00822.45
8.2.170.0090.00922.96
8.2.160.0100.00319.17
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.48
8.2.110.0100.00022.25
8.2.100.0070.00417.91
8.2.90.0090.00018.03
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0050.00320.01
8.2.30.0060.00318.09
8.2.20.0040.00417.63
8.2.10.0020.00517.63
8.2.00.0030.00617.82
8.1.270.0090.00021.95
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.64
8.1.230.0060.00620.97
8.1.220.0030.00617.77
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.66
8.1.180.0060.00318.74
8.1.170.0080.00018.71
8.1.160.0050.00222.15
8.1.150.0040.00418.66
8.1.140.0050.00217.50
8.1.130.0030.00317.85
8.1.120.0000.00817.48
8.1.110.0040.00417.37
8.1.100.0030.00317.45
8.1.90.0040.00417.44
8.1.80.0050.00317.46
8.1.70.0070.00017.43
8.1.60.0060.00317.48
8.1.50.0040.00417.44
8.1.40.0040.00417.47
8.1.30.0040.00417.60
8.1.20.0040.00417.58
8.1.10.0000.00817.50
8.1.00.0000.00717.55
8.0.300.0040.00419.82
8.0.290.0040.00417.04
8.0.280.0030.00318.40
8.0.270.0040.00417.26
8.0.260.0060.00018.40
8.0.250.0030.00316.97
8.0.240.0070.00016.92
8.0.230.0030.00316.83
8.0.220.0030.00316.92
8.0.210.0030.00316.87
8.0.200.0030.00316.92
8.0.190.0030.00617.06
8.0.180.0000.00716.82
8.0.170.0080.00017.02
8.0.160.0000.00816.89
8.0.150.0030.00316.87
8.0.140.0040.00416.96
8.0.130.0030.00313.36
8.0.120.0040.00416.85
8.0.110.0000.00716.95
8.0.100.0000.00716.80
8.0.90.0030.00316.94
8.0.80.0110.01116.95
8.0.70.0020.00517.00
8.0.60.0030.00516.90
8.0.50.0040.00416.88
8.0.30.0150.00417.05
8.0.20.0150.00617.40
8.0.10.0040.00417.09
8.0.00.0080.00816.72
7.4.330.0050.00015.00
7.4.320.0060.00016.64
7.4.300.0030.00316.57
7.4.290.0050.00216.54
7.4.280.0030.00316.46
7.4.270.0070.00016.52
7.4.260.0070.00016.58
7.4.250.0000.00716.41
7.4.240.0050.00216.48
7.4.230.0000.00916.70
7.4.220.0110.00716.41
7.4.210.0070.01016.51
7.4.200.0030.00316.50
7.4.190.0000.00716.56
7.4.160.0130.00916.63
7.4.150.0040.01417.40
7.4.140.0050.01517.86
7.4.130.0090.00816.51
7.4.120.0100.00716.46
7.4.110.0060.01216.50
7.4.100.0120.01216.47
7.4.90.0140.00316.59
7.4.80.0070.01119.39
7.4.70.0030.01416.39
7.4.60.0090.00616.75
7.4.50.0000.00816.59
7.4.40.0030.01322.77
7.4.30.0100.00716.60
7.4.00.0070.00715.05
7.3.330.0050.00013.33
7.3.320.0030.00313.17
7.3.310.0020.00516.26
7.3.300.0030.00316.23
7.3.290.0030.01116.27
7.3.280.0070.01016.28
7.3.270.0060.01017.40
7.3.260.0040.01416.34
7.3.250.0120.00916.44
7.3.240.0150.00416.43
7.3.230.0100.00716.39
7.3.210.0170.00016.39
7.3.200.0070.01519.39
7.3.190.0140.00316.49
7.3.180.0130.00316.51
7.3.170.0060.00916.42
7.3.160.0090.00616.29
7.3.120.0030.01214.66
7.2.330.0070.01016.68
7.2.320.0090.01316.62
7.2.310.0070.01016.46
7.2.300.0140.00316.49
7.2.290.0120.00616.72
7.2.00.0060.00619.50
7.1.100.0000.01117.84
7.1.70.0030.00617.00
7.1.60.0110.01419.82
7.1.50.0070.01816.93
7.1.00.0030.07322.35
7.0.200.0030.00516.64
7.0.140.0070.07022.15
7.0.110.0100.04720.01
7.0.100.0200.07019.95
7.0.90.0170.06019.93
7.0.80.0070.08719.84
7.0.70.0170.07320.03
7.0.60.0070.06719.99
7.0.50.0070.08719.88
7.0.40.0100.07019.85
7.0.30.0100.07719.88
7.0.20.0130.05319.84
7.0.10.0070.06019.78
7.0.00.0100.06019.67
5.6.280.0030.07021.16
5.6.260.0100.05320.64
5.6.250.0170.07320.73
5.6.240.0100.06320.57
5.6.230.0130.06320.56
5.6.220.0130.07720.55
5.6.210.0130.04320.59
5.6.200.0030.05720.56
5.6.190.0030.07720.83
5.6.180.0100.06720.66
5.6.170.0070.04720.62
5.6.160.0130.07020.56
5.6.150.0030.05320.62
5.6.140.0130.07020.61
5.6.130.0030.05720.67
5.6.120.0000.06320.70
5.6.110.0170.07020.67
5.6.100.0030.08020.54
5.6.90.0030.08320.66
5.6.80.0200.06319.97
5.6.70.0070.04020.02
5.6.60.0030.08019.98
5.6.50.0070.08020.00
5.6.40.0030.08019.99
5.6.30.0030.04720.00
5.6.20.0030.04319.91
5.6.10.0000.04720.21
5.6.00.0070.06719.97
5.5.380.0030.04317.66
5.5.370.0030.04717.70
5.5.360.0030.06017.50
5.5.350.0000.05317.55
5.5.340.0070.06318.13
5.5.330.0070.08318.10
5.5.320.0100.06318.26
5.5.310.0070.07318.09
5.5.300.0100.08018.10
5.5.290.0070.07718.05
5.5.280.0100.08717.83
5.5.270.0070.08318.08
5.5.260.0070.07718.09
5.5.250.0000.07017.87
5.5.240.0070.07717.51
5.5.230.0170.05017.48
5.5.220.0100.08317.33
5.5.210.0100.07717.29
5.5.200.0070.05317.19
5.5.190.0070.05317.27
5.5.180.0070.06017.30
5.5.160.0100.04317.61
5.5.150.0130.07017.28
5.5.140.0100.07717.42
5.5.130.0100.04717.60
5.5.120.0070.05017.62
5.5.110.0130.07017.27
5.5.100.0000.07317.49
5.5.90.0030.06017.20
5.5.80.0130.05017.30
5.5.70.0070.07717.13
5.5.60.0070.04317.20
5.5.50.0030.07717.29
5.5.40.0130.05717.34
5.5.30.0100.06017.17
5.5.20.0230.06317.48
5.5.10.0100.07317.06
5.5.00.0070.08017.16
5.4.450.0130.08019.34
5.4.440.0070.07719.51
5.4.430.0100.07019.32
5.4.420.0070.04019.33
5.4.410.0130.05319.29
5.4.400.0070.05719.02
5.4.390.0100.07719.18
5.4.380.0100.07319.09
5.4.370.0130.05019.00
5.4.360.0230.06319.02
5.4.350.0100.07319.01
5.4.340.0100.05719.02
5.4.320.0100.05019.09
5.4.310.0070.07719.33
5.4.300.0070.07019.09
5.4.290.0070.05319.18
5.4.280.0100.05319.16
5.4.270.0070.05018.95
5.4.260.0030.07719.34
5.4.250.0070.08319.31
5.4.240.0000.08019.17
5.4.230.0070.06719.18
5.4.220.0000.08319.25
5.4.210.0100.07319.22
5.4.200.0070.04319.16
5.4.190.0030.07718.94
5.4.180.0070.07718.94
5.4.170.0100.07319.17
5.4.160.0070.06319.16
5.4.150.0100.07019.21
5.4.140.0070.08016.61
5.4.130.0070.06716.50
5.4.120.0100.07316.39
5.4.110.0130.06716.47
5.4.100.0030.06016.31
5.4.90.0130.05716.47
5.4.80.0000.07016.35
5.4.70.0070.07016.45
5.4.60.0130.07016.55
5.4.50.0070.08016.38
5.4.40.0070.07316.63
5.4.30.0130.06316.53
5.4.20.0030.07016.24
5.4.10.0030.05716.41
5.4.00.0070.06715.90
5.3.290.0100.07314.70
5.3.280.0100.06714.74
5.3.270.0070.07314.75
5.3.260.0030.07714.58
5.3.250.0070.08014.62
5.3.240.0130.06714.59
5.3.230.0100.07314.55
5.3.220.0100.07714.54
5.3.210.0130.05714.54
5.3.200.0100.07314.71
5.3.190.0070.08014.59
5.3.180.0070.07314.79
5.3.170.0100.07714.57
5.3.160.0030.07714.54
5.3.150.0000.06014.54
5.3.140.0100.06314.55
5.3.130.0100.05014.52
5.3.120.0070.07314.55
5.3.110.0070.06314.56
5.3.100.0200.05314.19
5.3.90.0100.05014.00
5.3.80.0030.07713.99
5.3.70.0000.07314.02
5.3.60.0100.05714.02
5.3.50.0000.04313.81
5.3.40.0070.06014.02
5.3.30.0070.06013.93
5.3.20.0070.07313.67
5.3.10.0030.04313.69
5.3.00.0000.07313.63
5.2.170.0100.05011.08
5.2.160.0030.03011.20
5.2.150.0000.05311.15
5.2.140.0000.03311.15
5.2.130.0000.06311.05
5.2.120.0030.06710.88
5.2.110.0130.05310.89
5.2.100.0070.05311.10
5.2.90.0100.05711.02
5.2.80.0100.05311.09
5.2.70.0070.04011.00
5.2.60.0100.05711.20
5.2.50.0070.05711.18
5.2.40.0030.03010.92
5.2.30.0030.06310.88
5.2.20.0000.06710.97
5.2.10.0170.05310.82
5.2.00.0030.06010.61
5.1.60.0030.03310.19
5.1.50.0030.04010.19
5.1.40.0030.05710.19
5.1.30.0100.04710.34
5.1.20.0000.05710.25
5.1.10.0030.05310.31
5.1.00.0000.04710.19
5.0.50.0100.04010.19
5.0.40.0030.03310.19
5.0.30.0070.06010.19
5.0.20.0030.04310.19
5.0.10.0030.04710.19
5.0.00.0000.05010.19
4.4.90.0030.01710.19
4.4.80.0000.03310.19
4.4.70.0000.03010.19
4.4.60.0070.03310.19
4.4.50.0030.03310.19
4.4.40.0130.04010.19
4.4.30.0030.03310.19
4.4.20.0000.03710.19
4.4.10.0030.03310.19
4.4.00.0030.05310.19
4.3.110.0070.03310.19
4.3.100.0030.03310.19
4.3.90.0030.02710.19
4.3.80.0030.05310.19
4.3.70.0030.03310.19
4.3.60.0030.03310.19
4.3.50.0070.03010.19
4.3.40.0000.05710.19
4.3.30.0070.03010.19
4.3.20.0030.03310.19
4.3.10.0030.03710.19
4.3.00.0030.03010.19

preferences:
48.97 ms | 400 KiB | 5 Q