3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "12-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok($s1,"-"); $s3 = strtok($s2,"\n"); echo ("$s1 $s2 $s3"); ?>

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.01016.50
8.3.50.0150.00517.33
8.3.40.0040.01118.54
8.3.30.0160.00318.59
8.3.20.0000.00918.48
8.3.10.0040.00420.53
8.3.00.0000.00819.25
8.2.180.0090.00616.63
8.2.170.0190.00022.96
8.2.160.0130.00722.09
8.2.150.0000.01524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00719.66
8.2.110.0000.01020.97
8.2.100.0070.00417.97
8.2.90.0100.00019.53
8.2.80.0000.00719.41
8.2.70.0040.00417.63
8.2.60.0080.00817.68
8.2.50.0000.00818.07
8.2.40.0060.00319.94
8.2.30.0040.00417.97
8.2.20.0080.00017.76
8.2.10.0080.00317.79
8.2.00.0030.00517.72
8.1.280.0180.00025.92
8.1.270.0060.01022.04
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00922.48
8.1.230.0040.00820.89
8.1.220.0040.00417.79
8.1.210.0000.01018.89
8.1.200.0030.00617.22
8.1.190.0000.00817.51
8.1.180.0040.00418.10
8.1.170.0000.00820.52
8.1.160.0050.00318.83
8.1.150.0000.00718.60
8.1.140.0000.00717.34
8.1.130.0030.00317.84
8.1.120.0030.00317.39
8.1.110.0030.00517.43
8.1.100.0000.00717.32
8.1.90.0020.00517.40
8.1.80.0030.00317.41
8.1.70.0030.00317.29
8.1.60.0000.00717.40
8.1.50.0040.00417.42
8.1.40.0040.00417.43
8.1.30.0000.00717.63
8.1.20.0030.00517.41
8.1.10.0000.00717.39
8.1.00.0080.00017.46
8.0.300.0040.00419.82
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00317.25
8.0.260.0000.00718.35
8.0.250.0040.00316.95
8.0.240.0050.00616.93
8.0.230.0000.00716.84
8.0.220.0030.00316.86
8.0.210.0000.00716.87
8.0.200.0000.00716.84
8.0.190.0070.00016.98
8.0.180.0050.00316.82
8.0.170.0040.00416.82
8.0.160.0000.00816.84
8.0.150.0040.00416.73
8.0.140.0110.00016.74
8.0.130.0040.00413.26
8.0.120.0040.00416.81
8.0.110.0040.00416.95
8.0.100.0000.00716.92
8.0.90.0050.00216.80
8.0.80.0060.00916.86
8.0.70.0040.00416.79
8.0.60.0000.00716.68
8.0.50.0000.00716.68
8.0.30.0070.01216.99
8.0.20.0140.00617.04
8.0.10.0030.00517.00
8.0.00.0070.01116.81
7.4.330.0050.00012.83
7.4.320.0060.00016.35
7.4.300.0000.00616.42
7.4.290.0000.00716.43
7.4.280.0050.00516.50
7.4.270.0000.00616.51
7.4.260.0050.00013.10
7.4.250.0030.00516.57
7.4.240.0050.00216.34
7.4.230.0000.00716.64
7.4.220.0030.01316.50
7.4.210.0060.00916.52
7.4.200.0070.00016.25
7.4.190.0030.00316.39
7.4.160.0110.00416.28
7.4.150.0100.00716.47
7.4.140.0060.01116.33
7.4.130.0080.01216.36
7.4.120.0080.01316.58
7.4.110.0110.00616.50
7.4.100.0140.00316.47
7.4.90.0150.00916.48
7.4.80.0130.00716.55
7.4.70.0090.00816.51
7.4.60.0100.00716.35
7.4.50.0030.00616.48
7.4.40.0080.00316.30
7.4.30.0070.01016.38
7.4.00.0060.00915.07
7.3.330.0060.00013.10
7.3.320.0000.00513.19
7.3.310.0070.00016.24
7.3.300.0000.00716.25
7.3.290.0070.00716.29
7.3.280.0070.00916.29
7.3.270.0070.01016.28
7.3.260.0090.01116.46
7.3.250.0140.00716.34
7.3.240.0060.00916.26
7.3.230.0080.00816.50
7.3.210.0100.00616.60
7.3.200.0060.01219.39
7.3.190.0110.01116.29
7.3.180.0170.00316.33
7.3.170.0040.01416.54
7.3.160.0120.00316.15
7.3.120.0070.01014.93
7.2.330.0100.01016.45
7.2.320.0110.00816.31
7.2.310.0060.01316.38
7.2.300.0030.01216.34
7.2.290.0100.00616.47
7.2.60.0070.00716.61
7.2.00.0040.00819.37
7.1.200.0160.00315.53
7.1.100.0050.00318.07
7.1.70.0040.00416.86
7.1.60.0070.01419.40
7.1.50.0230.01034.64
7.1.00.0070.06722.51
7.0.200.0030.00616.88
7.0.140.0030.07022.00
7.0.120.0070.06722.17
7.0.60.0030.08720.02
7.0.50.0030.08017.96
7.0.40.0130.08020.05
7.0.30.0230.06320.00
7.0.20.0430.07020.04
7.0.10.0170.08020.20
7.0.00.0070.08720.08
5.6.280.0030.07020.98
5.6.210.0070.08020.76
5.6.200.0130.07318.08
5.6.190.0100.09020.49
5.6.180.0370.06320.63
5.6.170.0270.08020.54
5.6.160.0030.04720.54
5.6.150.0070.08018.18
5.6.140.0070.07318.09
5.6.130.0070.05318.11
5.6.120.0030.04020.98
5.6.110.0200.07721.10
5.6.100.0070.03721.00
5.6.90.0100.04020.92
5.6.80.0030.04320.28
5.5.350.2870.03720.43
5.5.340.0070.07717.91
5.5.330.0070.05020.37
5.5.320.0300.04020.13
5.5.310.0200.05720.28
5.5.300.0070.06317.98
5.5.290.0070.06318.02
5.5.280.0200.07320.86
5.5.270.0200.07320.63
5.5.260.0070.07320.66
5.5.250.0030.06720.69
5.5.240.0130.07720.18
5.4.450.3170.04319.24
5.4.440.3130.04319.41
5.4.430.3170.04319.36
5.4.420.3270.03319.14
5.4.410.3200.04019.08
5.4.400.3170.04319.13
5.4.390.3170.04718.90
5.4.380.2870.03719.24
5.4.370.3000.04019.24
5.4.360.2970.03319.05
5.4.350.3030.03718.90
5.4.340.3200.04319.10
5.4.320.3070.03719.09
5.4.310.3130.04318.81
5.4.300.3170.04019.11
5.4.290.2970.04019.09
5.4.280.3070.03319.07
5.4.270.3000.03019.24
5.4.260.2900.03719.08
5.4.250.3170.03718.88
5.4.240.3130.04019.05
5.4.230.3370.04718.91
5.4.220.3230.04019.23
5.4.210.3230.04019.08
5.4.200.2900.03719.12
5.4.190.3270.03319.12
5.4.180.2930.04319.23
5.4.170.3200.03718.92
5.4.160.3200.03318.86
5.4.150.3200.04019.08
5.4.140.3230.03716.38
5.4.130.2930.03716.15
5.4.120.3170.03716.34
5.4.110.2900.03316.41
5.4.100.3070.03716.47
5.4.90.3270.03316.47
5.4.80.3000.03316.38
5.4.70.3330.04016.45
5.4.60.3130.03716.40
5.4.50.3170.04016.15
5.4.40.3370.04016.31
5.4.30.3130.04016.40
5.4.20.2930.03016.46
5.4.10.3000.03316.38
5.4.00.2870.03715.75
5.3.290.3300.04314.62
5.3.280.2800.04014.45
5.3.270.3370.04314.48
5.3.260.3230.03714.44
5.3.250.3200.04014.43
5.3.240.3100.04314.65
5.3.230.3130.04314.43
5.3.220.3270.03014.41
5.3.210.3200.04014.61
5.3.200.3000.04014.51
5.3.190.3070.04314.42
5.3.180.3870.03714.42
5.3.170.2970.03314.41
5.3.160.4030.02714.40
5.3.150.3100.04014.51
5.3.140.3000.04714.39
5.3.130.3170.04014.41
5.3.120.3030.04314.45
5.3.110.3130.04714.48
5.3.100.2870.04013.97
5.3.90.3330.04314.11
5.3.80.3170.03013.96
5.3.70.3200.03713.86
5.3.60.2930.03313.85
5.3.50.3130.03313.80
5.3.40.3130.04013.85
5.3.30.3430.03313.68
5.3.20.3330.03713.53
5.3.10.3270.03713.53
5.3.00.2930.03313.48
5.2.170.2770.04011.16
5.2.160.2700.02711.19
5.2.150.2700.02711.00
5.2.140.2370.03311.19
5.2.130.2730.03311.26
5.2.120.2630.03011.01
5.2.110.2770.03310.94
5.2.100.2470.02711.04
5.2.90.2630.03011.11
5.2.80.2170.03310.93
5.2.70.2530.03310.98
5.2.60.2730.02710.95
5.2.50.2730.02711.06
5.2.40.2030.02711.00
5.2.30.2170.03310.80
5.2.20.2200.03711.03
5.2.10.2230.03010.82
5.2.00.2230.02310.79
5.1.60.2070.02310.45
5.1.50.2170.03010.45
5.1.40.2270.02710.45
5.1.30.2270.02010.45
5.1.20.2030.01710.46
5.1.10.2030.02010.45
5.1.00.1830.03310.45
5.0.50.0970.02010.45
5.0.40.1170.02310.45
5.0.30.1070.03310.45
5.0.20.1030.01710.45
5.0.10.1230.02310.45
5.0.00.1030.03710.45
4.4.90.1070.01310.45
4.4.80.0970.01710.45
4.4.70.1170.02310.45
4.4.60.1200.02010.45
4.4.50.0970.02010.45
4.4.40.1200.03010.45
4.4.30.0930.02010.45
4.4.20.1230.01710.45
4.4.10.1070.01310.45
4.4.00.1130.03310.45
4.3.110.1000.01710.45
4.3.100.1000.01010.45
4.3.90.1000.01010.45
4.3.80.1230.02310.45
4.3.70.0970.01310.45
4.3.60.1070.01710.45
4.3.50.1300.01710.45
4.3.40.1070.02310.45
4.3.30.0530.01710.45
4.3.20.0600.01710.45
4.3.10.0470.01710.45
4.3.00.0500.01310.45

preferences:
54.79 ms | 401 KiB | 5 Q