3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = " , Number1 , 234, 0 , internal space , 4heaven's-sake , "; var_export( preg_split ('/ *,+ */', $str, 0, PREG_SPLIT_NO_EMPTY) );

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.0000.01418.30
8.3.50.0160.00320.38
8.3.40.0140.00020.43
8.3.30.0040.01118.86
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.180.0070.01025.92
8.2.170.0140.00018.97
8.2.160.0080.00822.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0040.00419.77
8.2.110.0070.00319.01
8.2.100.0090.00617.77
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00318.04
8.2.50.0040.00418.04
8.2.40.0040.00418.03
8.2.30.0000.00718.02
8.2.20.0070.00019.19
8.2.10.0050.00318.12
8.2.00.0030.00519.18
8.1.280.0150.00325.92
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00424.02
8.1.230.0000.01117.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0090.00017.62
8.1.160.0000.00718.71
8.1.150.0000.00718.77
8.1.140.0000.00817.53
8.1.130.0030.00319.03
8.1.120.0050.00317.45
8.1.110.0120.00417.48
8.1.100.0120.00417.46
8.1.90.0120.00417.51
8.1.80.0120.00417.54
8.1.70.0110.00617.45
8.1.60.0150.00417.56
8.1.50.0130.00517.66
8.1.40.0120.00617.51
8.1.30.0110.00817.78
8.1.20.0100.00817.71
8.1.10.0160.00317.55
8.1.00.0120.00617.48
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0000.00718.40
8.0.270.0040.00417.12
8.0.260.0000.00618.41
8.0.250.0000.00617.08
8.0.240.0080.00816.97
8.0.230.0060.00916.98
8.0.220.0080.00916.96
8.0.210.0090.00716.99
8.0.200.0090.00717.02
8.0.190.0100.00716.99
8.0.180.0080.00816.93
8.0.170.0080.00816.98
8.0.160.0150.00016.91
8.0.150.0150.00016.93
8.0.140.0040.01216.88
8.0.130.0140.00316.89
8.0.120.0120.00216.98
8.0.110.0080.00816.98
8.0.100.0080.00816.93
8.0.90.0030.01216.97
8.0.80.0120.00316.92
8.0.70.0120.00316.89
8.0.60.0090.00516.80
8.0.50.0160.00016.92
8.0.30.0070.00716.86
8.0.20.0050.01116.93
8.0.10.0000.01517.04
7.4.330.0060.00015.55
7.4.320.0040.00416.72
7.4.300.0150.00216.77
7.4.290.0140.00316.64
7.4.280.0030.01416.75
7.4.270.0080.00816.67
7.4.260.0120.00416.67
7.4.250.0110.00016.66
7.4.240.0100.00716.63
7.4.230.0130.00016.69
7.4.220.0060.00516.79
7.4.210.0090.00316.71
7.4.200.0110.00016.70
7.4.190.0040.00816.61
7.4.180.0050.00516.61
7.4.160.0100.00416.73
7.4.150.0130.00216.56
7.4.140.0110.00516.63
7.4.130.0080.00616.58
7.4.120.0100.00016.44
7.4.110.0100.00516.58
7.4.100.0070.00616.72
7.4.90.0070.00716.69
7.4.80.0100.00616.68
7.4.70.0060.00916.66
7.4.60.0040.00916.61
7.4.50.0090.00616.52
7.4.40.0050.00916.41
7.4.30.0070.00716.54
7.4.20.0060.00616.51
7.4.10.0100.00316.46
7.4.00.0070.00716.56

preferences:
53.34 ms | 400 KiB | 5 Q