3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ' \mathrm{ABCdef123} none ABCdef123 \mathit{ABCdef123} none \mathnormal{ABCdef123} none \mathcal{ABC} '; $x = array_filter(preg_split('/\s+/', $x)); usort($x, function ($a, $b) { return strcmp(strtolower($a), strtolower($b)); }); foreach ($x as $xx) { echo $xx, "\n"; }

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.59
8.3.50.0140.00521.33
8.3.40.0070.00718.61
8.3.30.0070.00718.92
8.3.20.0110.00420.35
8.3.10.0040.00423.69
8.3.00.0070.00023.48
8.2.180.0090.01218.64
8.2.170.0040.01122.96
8.2.160.0090.00620.54
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00819.77
8.2.120.0040.00426.35
8.2.110.0070.00322.25
8.2.100.0080.00417.84
8.2.90.0060.00318.34
8.2.80.0000.00818.09
8.2.70.0000.00917.88
8.2.60.0030.00617.75
8.2.50.0040.00417.88
8.2.40.0030.00519.48
8.2.30.0040.00419.35
8.2.20.0040.00417.78
8.2.10.0040.00418.04
8.2.00.0050.00218.17
8.1.280.0160.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00928.09
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0080.00322.80
8.1.220.0050.00317.74
8.1.210.0060.00318.90
8.1.200.0040.00417.60
8.1.190.0060.00317.47
8.1.180.0080.00018.10
8.1.170.0000.00817.62
8.1.160.0040.00420.80
8.1.150.0000.00718.85
8.1.140.0000.00819.60
8.1.130.0070.00017.73
8.1.120.0050.00217.68
8.1.110.0040.00417.61
8.1.100.0040.00417.61
8.1.90.0000.00717.49
8.1.80.0040.00417.66
8.1.70.0070.00017.58
8.1.60.0040.00417.78
8.1.50.0000.00917.71
8.1.40.0080.00017.70
8.1.30.0090.00017.83
8.1.20.0040.00417.68
8.1.10.0040.00417.74
8.1.00.0040.00417.63
8.0.300.0000.00719.98
8.0.290.0030.00617.00
8.0.280.0040.00418.44
8.0.270.0040.00317.08
8.0.260.0030.00317.32
8.0.250.0000.00717.15
8.0.240.0000.00817.20
8.0.230.0000.00717.15
8.0.220.0000.01017.15
8.0.210.0040.00417.09
8.0.200.0000.00717.07
8.0.190.0030.00617.06
8.0.180.0040.00417.00
8.0.170.0080.00017.14
8.0.160.0030.00517.05
8.0.150.0040.00417.11
8.0.140.0000.00716.99
8.0.130.0030.00313.47
8.0.120.0080.00017.01
8.0.110.0040.00417.09
8.0.100.0040.00416.88
8.0.90.0040.00417.09
8.0.80.0060.01017.04
8.0.70.0040.00416.94
8.0.60.0000.00717.10
8.0.50.0050.00316.88
8.0.30.0090.00917.06
8.0.20.0070.01217.52
8.0.10.0000.00817.05
8.0.00.0080.01017.02
7.4.330.0000.00516.80
7.4.320.0070.00016.79
7.4.300.0050.00316.80
7.4.290.0030.00316.80
7.4.280.0030.00716.73
7.4.270.0000.00716.65
7.4.260.0060.00016.74
7.4.250.0050.00316.74
7.4.240.0020.00516.78
7.4.230.0070.00016.73
7.4.220.0070.01716.77
7.4.210.0090.00916.85
7.4.200.0020.00516.84
7.4.160.0060.01016.51
7.4.150.0040.01417.40
7.4.140.0080.01117.86
7.4.130.0070.01016.79
7.4.120.0050.01216.57
7.4.110.0120.00616.49
7.4.100.0120.00916.71
7.4.90.0030.01516.69
7.4.80.0030.01619.39
7.4.70.0050.01816.89
7.4.60.0100.00716.50
7.4.50.0030.01416.54
7.4.40.0120.00616.57
7.4.30.0030.01616.63
7.4.20.0140.00416.25
7.4.10.0130.01016.50
7.4.00.0090.01015.92
7.3.330.0000.00513.27
7.3.320.0030.00313.30
7.3.310.0050.00316.34
7.3.300.0000.00816.34
7.3.290.0070.00816.47
7.3.280.0080.00916.44
7.3.270.0100.00717.40
7.3.260.0100.01016.75
7.3.240.0100.00916.54
7.3.230.0070.01016.52
7.3.210.0080.00816.49
7.3.200.0170.00719.39
7.3.190.0040.01216.50
7.3.180.0050.01416.66
7.3.170.0100.01016.39
7.3.160.0090.00916.73
7.3.150.0160.00816.29
7.3.140.0150.00716.57
7.3.130.0120.00916.41
7.3.120.0090.00715.64
7.3.110.0070.00815.77
7.3.100.0050.01015.91
7.3.90.0140.00115.55
7.3.80.0080.00815.87
7.3.70.0100.00615.87
7.3.60.0090.00815.72
7.3.50.0050.01215.71
7.3.40.0060.01115.57
7.3.30.0060.01215.72
7.3.20.0010.01316.69
7.3.10.0090.00616.65
7.3.00.0090.00716.57
7.2.330.0060.01216.71
7.2.320.0060.01016.82
7.2.310.0070.01316.73
7.2.300.0100.01016.68
7.2.290.0060.01216.81
7.2.280.0120.01116.62
7.2.270.0100.00716.75
7.2.260.0060.01616.87
7.2.250.0120.00615.98
7.2.240.0100.00616.00
7.2.230.0080.00815.94
7.2.220.0070.01015.88
7.2.210.0070.00815.97
7.2.200.0070.00715.91
7.2.190.0070.01115.86
7.2.180.0050.01316.00
7.2.170.0040.01415.92
7.2.160.0070.01016.50
7.2.150.0110.00516.76
7.2.140.0150.00616.76
7.2.130.0120.01016.78
7.2.120.0100.00816.92
7.2.110.0130.00616.96
7.2.100.0100.00916.92
7.2.90.0160.00416.95
7.2.80.0110.01116.79
7.2.70.0080.01116.85
7.2.60.0070.00916.83
7.2.50.0120.00616.84
7.2.40.0140.00516.87
7.2.30.0110.00516.69
7.2.20.0090.01016.95
7.2.10.0090.00416.92
7.2.00.0080.00916.98
7.1.330.0050.01415.82
7.1.320.0080.00515.89
7.1.310.0060.00815.73
7.1.300.0050.01215.75
7.1.290.0070.01315.80
7.1.280.0130.00415.95
7.1.270.0060.00915.84
7.1.260.0080.00815.86
7.1.250.0100.00915.67
7.1.240.0090.00915.51
7.1.230.0100.00615.76
7.1.220.0120.00615.55
7.1.210.0030.01815.58
7.1.200.0070.01215.81
7.1.190.0030.01315.69
7.1.180.0100.00615.44
7.1.170.0000.01515.61
7.1.160.0060.00915.67
7.1.150.0030.01315.55
7.1.140.0070.01315.73
7.1.130.0070.00715.82
7.1.120.0120.00315.56
7.1.110.0090.00615.63
7.1.100.0000.01415.70
7.1.90.0030.01315.86
7.1.80.0090.00615.75
7.1.70.0060.00516.51
7.1.60.0090.01017.49
7.1.50.0110.00616.44
7.1.40.0080.00715.63
7.1.30.0070.00715.71
7.1.20.0140.00415.51
7.1.10.0140.00015.75
7.1.00.0060.04119.08
7.0.330.0090.00915.50
7.0.320.0130.00315.25
7.0.310.0040.01115.44
7.0.300.0100.00515.43
7.0.290.0130.00315.19
7.0.280.0070.00715.41
7.0.270.0120.00415.20
7.0.260.0160.00715.31
7.0.250.0130.00215.36
7.0.240.0060.01215.19
7.0.230.0090.00615.43
7.0.220.0080.00815.39
7.0.210.0000.01415.39
7.0.200.0070.00516.14
7.0.190.0090.00615.51
7.0.180.0090.00615.43
7.0.170.0060.00915.36
7.0.160.0130.00015.27
7.0.150.0100.00715.43
7.0.140.0090.00915.27
7.0.130.0060.00915.33
7.0.120.0070.00715.33
7.0.110.0070.00715.35
7.0.100.0130.00315.33
7.0.90.0060.00915.52
7.0.80.0110.00815.42
7.0.70.0110.00415.32
7.0.60.0060.03418.42
7.0.50.0060.02916.65
7.0.40.0080.02617.73
7.0.30.0150.04517.83
7.0.20.0190.04017.76
7.0.10.0060.02517.73
7.0.00.0130.04217.70
5.6.400.0070.01015.70
5.6.390.0110.01115.66
5.6.380.0130.00415.66
5.6.370.0120.00916.03
5.6.360.0090.00915.87
5.6.350.0150.00616.02
5.6.340.0100.00716.20
5.6.330.0030.01415.57
5.6.320.0090.00915.90
5.6.310.0030.01315.98
5.6.300.0000.01715.86
5.6.290.0130.01016.24
5.6.280.0060.02018.57
5.6.270.0070.01015.91
5.6.260.0070.01115.79
5.6.250.0060.01215.93
5.6.240.0070.01016.04
5.6.230.0060.01215.82
5.6.220.0070.01016.00
5.6.210.0060.03918.35
5.6.200.0070.02516.90
5.6.190.0130.02818.33
5.6.180.0210.02818.16
5.6.170.0170.04918.28
5.6.160.0040.02718.27
5.6.150.0080.03617.08
5.6.140.0100.04417.09
5.6.130.0060.03417.10
5.6.120.0150.03318.51
5.6.110.0100.02818.45
5.6.100.0100.04218.42
5.6.90.0090.04718.40
5.6.80.0050.04818.19
5.6.70.0120.00815.79
5.6.60.0120.00415.95
5.6.50.0030.01315.73
5.6.40.0130.00315.89
5.6.30.0000.01715.88
5.6.20.0120.00616.03
5.6.10.0060.01215.75
5.6.00.0140.00415.97
5.5.380.0000.02515.48
5.5.370.0140.00315.96
5.5.360.0110.00715.65
5.5.350.0050.04718.07
5.5.340.0060.04816.93
5.5.330.0070.04918.11
5.5.320.0140.02818.06
5.5.310.0080.03618.01
5.5.300.0100.04616.96
5.5.290.0070.02616.88
5.5.280.0090.04318.32
5.5.270.0060.02718.32
5.5.260.0090.02618.29
5.5.250.0100.04118.05
5.5.240.0150.03817.96
5.5.230.0040.01215.72
5.5.220.0180.00615.77
5.5.210.0070.01015.94
5.5.200.0140.00415.61
5.5.190.0080.00815.85
5.5.180.0060.01216.07
5.5.170.0060.01215.83
5.5.160.0060.01215.82
5.5.150.0060.01515.88
5.5.140.0060.01615.84
5.5.130.0060.01515.68
5.5.120.0060.01615.73
5.5.110.0070.01015.71
5.5.100.0100.00715.83
5.5.90.0090.00815.72
5.5.80.0170.00016.03
5.5.70.0140.00415.66
5.5.60.0110.01115.57
5.5.50.0100.00715.70
5.5.40.0140.00415.86
5.5.30.0090.00915.79
5.5.20.0140.00315.64
5.5.10.0060.01315.76
5.5.00.0060.01615.71

preferences:
69.91 ms | 401 KiB | 5 Q