3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert('12' > '2'); // Numeric comparison assert('2' > '13 '); // String comparison assert('13 ' > '12'); // String comparison assert('12' > '2' && '2' > '13 ' && '13 ' > '12'); assert(12 > '2'); assert('2' > '13 '); assert('13 ' > 12); $a = [12, 2, '13 ']; sort($a); var_export($a); sort($a); var_export($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.0070.01418.18
8.3.50.0070.00717.80
8.3.40.0180.00418.71
8.3.30.0110.00418.66
8.3.20.0040.00420.34
8.3.10.0030.00521.94
8.3.00.0080.00019.38
8.2.180.0150.00716.50
8.2.170.0070.00722.96
8.2.160.0070.00718.93
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00321.10
8.2.110.0050.00521.04
8.2.100.0100.00317.93
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0040.00417.74
8.2.60.0000.00817.80
8.2.50.0080.00018.10
8.2.40.0000.00820.44
8.2.30.0000.00719.17
8.2.20.0050.00317.69
8.2.10.0080.00018.05
8.2.00.0050.00218.01
8.1.280.0070.01125.92
8.1.270.0080.00023.85
8.1.260.0000.00726.35
8.1.250.0070.00728.09
8.1.240.0060.00322.19
8.1.230.0040.00819.04
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00418.47
8.1.160.0000.00720.83
8.1.150.0040.00418.77
8.1.140.0050.00319.45
8.1.130.0070.00017.64
8.1.120.0030.00317.30
8.1.110.0040.00417.25
8.1.100.0050.00217.30
8.1.90.0000.00717.40
8.1.80.0030.00517.32
8.1.70.0040.00417.34
8.1.60.0030.00717.51
8.1.50.0040.00417.48
8.1.40.0040.00417.36
8.1.30.0000.00817.50
8.1.20.0090.00017.67
8.1.10.0040.00417.39
8.1.00.0040.00417.30
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.26
8.0.270.0030.00317.11
8.0.260.0000.00617.20
8.0.250.0040.00417.01
8.0.240.0040.00416.93
8.0.230.0040.00416.84
8.0.220.0070.00016.80
8.0.210.0000.00816.93
8.0.200.0000.00816.99
8.0.190.0040.00416.95
8.0.180.0040.00416.91
8.0.170.0040.00416.79
8.0.160.0070.00016.79
8.0.150.0040.00316.84
8.0.140.0040.00716.89
8.0.130.0000.00513.32
8.0.120.0050.00316.88
8.0.110.0000.00716.79
8.0.100.0000.00716.75
8.0.90.0040.00416.78
8.0.80.0110.00516.96
8.0.70.0000.00716.72
8.0.60.0060.00316.85
8.0.50.0080.00016.71
8.0.30.0060.01117.11
8.0.20.0120.00617.40
8.0.10.0080.00016.74
8.0.00.0090.00916.51
7.4.330.0020.00215.08
7.4.320.0030.00316.45
7.4.300.0000.00716.55
7.4.290.0100.00016.43
7.4.280.0000.00916.45
7.4.270.0030.00316.34
7.4.260.0000.01116.54
7.4.250.0040.00416.55
7.4.240.0040.00416.54
7.4.230.0030.00316.53
7.4.220.0090.00916.61
7.4.210.0050.01016.45
7.4.200.0040.00416.33
7.4.160.0130.00316.25
7.4.150.0120.00617.40
7.4.140.0060.01417.86
7.4.130.0090.01116.41
7.4.120.0100.00716.51
7.4.110.0000.01616.40
7.4.100.0100.01116.54
7.4.90.0090.00916.46
7.4.80.0110.01119.39
7.4.70.0100.00716.44
7.4.60.0150.00716.48
7.4.50.0040.01116.41
7.4.40.0060.01016.66
7.4.30.0080.00816.66
7.4.00.0050.01115.05
7.3.330.0070.00012.99
7.3.320.0030.00313.05
7.3.310.0030.00316.27
7.3.300.0030.00316.30
7.3.290.0040.00416.16
7.3.280.0060.01116.23
7.3.270.0030.01417.40
7.3.260.0070.00916.37
7.3.250.0090.01216.15
7.3.240.0050.01116.20
7.3.230.0100.00716.39
7.3.210.0030.01316.22
7.3.200.0090.01216.26
7.3.190.0070.01016.30
7.3.180.0110.01116.26
7.3.170.0040.01916.14
7.3.160.0120.00916.28
7.3.120.0070.01014.69
7.3.110.0130.00314.97
7.3.100.0090.00614.69
7.3.90.0000.01214.46
7.3.80.0120.00314.70
7.3.70.0070.00714.79
7.3.60.0030.00814.79
7.3.50.0040.01114.53
7.3.40.0070.00714.67
7.3.30.0060.01014.49
7.3.20.0040.01416.62
7.3.10.0140.00416.80
7.3.00.0060.00916.61
7.2.330.0070.01116.19
7.2.320.0140.00916.60
7.2.310.0100.01016.63
7.2.300.0040.01616.34
7.2.290.0080.00816.25
7.2.250.0070.01014.98
7.2.240.0000.01814.77
7.2.230.0130.00314.85
7.2.220.0090.00014.85
7.2.210.0030.01014.91
7.2.200.0100.00714.70
7.2.190.0000.01514.95
7.2.180.0080.00814.76
7.2.170.0070.01014.79
7.2.80.0030.00716.49
7.2.60.0040.00816.50
7.2.00.0000.01119.20
7.1.330.0060.00715.39
7.1.320.0030.00716.02
7.1.310.0030.01015.86
7.1.300.0000.01215.61
7.1.290.0060.00315.85
7.1.280.0100.00315.80
7.1.270.0060.00915.46
7.1.260.0000.01315.70
7.1.200.0030.00615.78
7.1.100.0000.01118.01
7.1.70.0000.01516.85
7.1.60.0060.00619.90
7.1.00.0130.06722.44
7.0.200.0040.00416.91
7.0.80.0270.07019.90
7.0.70.0300.06020.02
7.0.60.0370.05020.00
7.0.50.0270.06320.29
7.0.40.0330.05320.39
7.0.30.0400.05320.29
7.0.20.0370.05320.38
7.0.10.0170.06720.46
7.0.00.0370.06020.36
5.6.280.0000.07721.11
5.6.230.0300.04720.62
5.6.220.0100.05720.66
5.6.210.0270.04020.82
5.6.200.0270.05021.01
5.6.190.0230.05021.13
5.6.180.0170.05321.03
5.6.170.0030.06721.09
5.6.160.0200.05021.17
5.6.150.0200.06021.13
5.6.140.0170.06721.07
5.6.130.0170.05321.17
5.6.120.0070.06321.17
5.6.110.0100.06021.16
5.6.100.0170.05021.05
5.6.90.0130.06021.06
5.6.80.0030.06020.48
5.6.70.0100.06020.55
5.6.60.0130.05020.44
5.6.50.0200.04720.42
5.6.40.0100.05720.45
5.6.30.0030.06020.38
5.6.20.0100.05720.38
5.6.10.0200.04720.52
5.6.00.0070.06020.43
5.5.370.0170.07020.40
5.5.360.0130.05720.41
5.5.350.0030.06320.48
5.5.340.0130.06320.84
5.5.330.0030.06720.77
5.5.320.0070.06020.89
5.5.310.0130.05320.88
5.5.300.0230.05020.92
5.5.290.0130.05720.86
5.5.280.0170.05720.88
5.5.270.0130.05720.88
5.5.260.0200.05020.71
5.5.250.0070.06020.78
5.5.240.0170.05020.29
5.5.230.0100.07020.31
5.5.220.0100.05720.23
5.5.210.0200.05320.27
5.5.200.0100.05320.31
5.5.190.0100.05720.06
5.5.180.0130.05320.26
5.5.160.0170.06020.21
5.5.150.0130.05020.23
5.5.140.0070.05720.27
5.5.130.0100.05720.23
5.5.120.0100.05320.23
5.5.110.0130.05320.20
5.5.100.0170.05020.23
5.5.90.0100.05320.01
5.5.80.0030.06020.18
5.5.70.0200.04320.00
5.5.60.0030.05720.00
5.5.50.0170.04720.14
5.5.40.0100.05020.11
5.5.30.0030.06320.21
5.5.20.0030.06720.05
5.5.10.0130.06320.07
5.5.00.0130.05020.03

preferences:
56.45 ms | 401 KiB | 5 Q