3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '[Tue Jun 18 22:25:32 BST 2013] NeoThermic likes B*witched - C"est La Vie'; $bracketpos = strpos($input, '['); $endbracketpos = strpos($input, ']'); $datestamp = substr($input, $bracketpos, $endbracketpos - $bracketpos); $result = strtotime($datestamp); var_dump($result);

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.0040.01118.97
8.3.30.0070.00719.08
8.3.20.0080.00020.39
8.3.10.0040.00423.74
8.3.00.0060.00319.36
8.2.170.0080.00822.96
8.2.160.0150.00018.95
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.30
8.2.110.0030.00622.25
8.2.100.0070.00417.97
8.2.90.0050.00319.26
8.2.80.0000.00817.97
8.2.70.0090.00017.75
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0000.00818.01
8.2.20.0000.00817.84
8.2.10.0040.00418.09
8.2.00.0000.00717.94
8.1.270.0040.00423.80
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00323.88
8.1.230.0040.00719.17
8.1.220.0060.00317.75
8.1.210.0060.00318.77
8.1.200.0070.00317.48
8.1.190.0000.00917.52
8.1.180.0060.00318.10
8.1.170.0000.00818.81
8.1.160.0040.00422.03
8.1.150.0000.00718.86
8.1.140.0070.00017.56
8.1.130.0070.00017.88
8.1.120.0090.00017.63
8.1.110.0050.00317.64
8.1.100.0040.00417.64
8.1.90.0040.00417.64
8.1.80.0000.00717.58
8.1.70.0060.00317.65
8.1.60.0080.00017.68
8.1.50.0000.00817.65
8.1.40.0040.00417.59
8.1.30.0040.00417.68
8.1.20.0040.00417.76
8.1.10.0050.00217.50
8.1.00.0040.00417.64
8.0.300.0020.00520.73
8.0.290.0000.00817.13
8.0.280.0030.00518.41
8.0.270.0070.00017.30
8.0.260.0030.00317.34
8.0.250.0000.00717.22
8.0.240.0020.00517.15
8.0.230.0000.00817.19
8.0.220.0030.00517.06
8.0.210.0030.00317.00
8.0.200.0030.00317.03
8.0.190.0040.00417.13
8.0.180.0000.00717.00
8.0.170.0000.00817.07
8.0.160.0040.00417.08
8.0.150.0000.00717.09
8.0.140.0000.00717.04
8.0.130.0000.00613.49
8.0.120.0030.00516.93
8.0.110.0080.00016.93
8.0.100.0080.00017.01
8.0.90.0040.00416.98
8.0.80.0090.00617.09
8.0.70.0000.00716.99
8.0.60.0050.00316.90
8.0.50.0000.00717.01
8.0.30.0090.01017.33
8.0.20.0110.00717.41
8.0.10.0080.00017.27
8.0.00.0130.00716.94
7.4.330.0050.00015.09
7.4.320.0030.00316.74
7.4.300.0000.00616.77
7.4.290.0000.00716.74
7.4.280.0030.00616.67
7.4.270.0040.00416.55
7.4.260.0000.00716.71
7.4.250.0000.00716.67
7.4.240.0030.00316.70
7.4.230.0000.00716.78
7.4.220.0040.01216.73
7.4.210.0110.00716.62
7.4.200.0070.00016.73
7.4.190.0070.00016.91
7.4.160.0080.00816.83
7.4.150.0070.01117.40
7.4.140.0080.00917.86
7.4.130.0090.00816.64
7.4.120.0050.01316.71
7.4.110.0120.00616.67
7.4.100.0080.01116.76
7.4.90.0130.00516.76
7.4.80.0090.01219.39
7.4.70.0070.01116.58
7.4.60.0110.00616.64
7.4.50.0040.00416.38
7.4.40.0140.00422.77
7.4.30.0130.01016.78
7.4.10.0140.00415.35
7.4.00.0080.00915.07
7.3.330.0000.00513.22
7.3.320.0040.00413.11
7.3.310.0050.00216.29
7.3.300.0000.00716.44
7.3.290.0040.01016.37
7.3.280.0090.00716.35
7.3.270.0090.00917.40
7.3.260.0130.00516.87
7.3.250.0050.01216.52
7.3.240.0100.00616.56
7.3.230.0090.00616.41
7.3.210.0090.00916.40
7.3.200.0030.01919.39
7.3.190.0060.01916.87
7.3.180.0030.01316.82
7.3.170.0090.00616.65
7.3.160.0110.00516.52
7.3.130.0100.01015.06
7.3.120.0090.00814.87
7.3.110.0110.00814.87
7.3.100.0050.01015.04
7.3.90.0120.00514.99
7.3.80.0050.00714.83
7.3.70.0090.00715.04
7.3.60.0020.01014.87
7.3.50.0090.00514.80
7.3.40.0080.00814.76
7.3.30.0140.00114.93
7.3.20.0050.01116.83
7.3.10.0020.01116.83
7.3.00.0050.00816.63
7.2.330.0110.01116.75
7.2.320.0100.01016.56
7.2.310.0130.00316.89
7.2.300.0060.01016.89
7.2.290.0030.01316.94
7.2.260.0030.01715.17
7.2.250.0020.01415.36
7.2.240.0050.01215.27
7.2.230.0070.01215.15
7.2.220.0100.00315.34
7.2.210.0070.00715.20
7.2.200.0000.01115.04
7.2.190.0040.00915.24
7.2.180.0050.01115.24
7.2.170.0050.00915.09
7.2.160.0140.00015.16
7.2.150.0070.00717.16
7.2.140.0070.00716.88
7.2.130.0090.00617.29
7.2.120.0070.01017.05
7.2.110.0060.01017.06
7.2.100.0070.00716.99
7.2.90.0090.00617.15
7.2.80.0060.01017.05
7.2.70.0030.01317.20
7.2.60.0100.00616.89
7.2.50.0060.00317.14
7.2.40.0060.00917.10
7.2.30.0030.00717.20
7.2.20.0030.00617.19
7.2.10.0040.00816.94
7.2.00.0040.00818.05
7.1.330.0020.01015.88
7.1.320.0090.00415.91
7.1.310.0080.00716.05
7.1.300.0020.01315.82
7.1.290.0100.00515.87
7.1.280.0070.00815.98
7.1.270.0080.00615.99
7.1.260.0070.00715.89
7.1.250.0000.01115.95
7.1.240.0140.00315.95
7.1.230.0000.01115.81
7.1.220.0100.00015.75
7.1.210.0030.01015.81
7.1.200.0060.00615.96
7.1.190.0080.00315.95
7.1.180.0080.00416.07
7.1.170.0040.00815.98
7.1.160.0060.00616.10
7.1.150.0040.00815.65
7.1.140.0080.00415.85
7.1.130.0030.01316.17
7.1.120.0090.00615.71
7.1.110.0100.00315.97
7.1.100.0080.00717.19
7.1.90.0080.00816.09
7.1.80.0110.00416.09
7.1.70.0050.01016.57
7.1.60.0060.01117.69
7.1.50.0120.01225.49
7.1.40.0030.01015.97
7.1.30.0030.01216.04
7.1.20.0070.01016.02
7.1.10.0000.01315.99
7.1.00.0030.04319.11
7.0.330.0000.01315.22
7.0.320.0080.00015.57
7.0.310.0030.00915.56
7.0.300.0080.00415.30
7.0.290.0060.01015.73
7.0.280.0000.01215.43
7.0.270.0090.00015.54
7.0.260.0030.01415.56
7.0.250.0040.01115.46
7.0.240.0090.00315.55
7.0.230.0040.00815.24
7.0.220.0060.00815.78
7.0.210.0090.00015.48
7.0.200.0200.00815.42
7.0.190.0040.00815.60
7.0.180.0080.00415.64
7.0.170.0000.01415.56
7.0.160.0000.01215.23
7.0.150.0030.01015.49
7.0.140.0030.03818.73
7.0.130.0040.00715.59
7.0.120.0030.01015.39
7.0.110.0060.00615.66
7.0.100.0060.00615.58
7.0.90.0030.00515.53
7.0.80.0000.01315.37
7.0.70.0060.00615.69
7.0.60.0070.03317.66
7.0.50.0080.04216.82
7.0.40.0070.02516.88
7.0.30.0300.03516.89
7.0.20.0220.02916.92
7.0.10.0100.05116.81
7.0.00.0080.03316.74
5.6.400.0070.00414.54
5.6.390.0000.00914.22
5.6.380.0030.00714.21
5.6.370.0130.00314.51
5.6.360.0040.01114.53
5.6.350.0100.00714.56
5.6.340.0070.00714.45
5.6.330.0070.00714.38
5.6.320.0000.01214.35
5.6.310.0080.00414.18
5.6.300.0060.00614.20
5.6.290.0070.00714.57
5.6.280.0080.03817.80
5.6.270.0060.00614.36
5.6.260.0040.00714.32
5.6.250.0000.01214.25
5.6.240.0000.01714.62
5.6.230.0100.00714.20
5.6.220.0110.00314.53
5.6.210.0020.02717.51
5.6.200.0030.04716.27
5.6.190.0070.04717.31
5.6.180.2190.02017.30
5.6.170.0160.03017.32
5.6.160.0120.03517.32
5.6.150.0070.02216.34
5.6.140.0080.03616.22
5.6.130.0100.03316.14
5.6.120.0070.02817.55
5.6.110.0040.05017.69
5.6.100.0100.04017.75
5.6.90.0050.03017.56
5.6.80.0080.03817.22
5.6.70.0220.03217.27
5.6.60.0060.00914.36
5.6.50.0150.00014.26
5.6.40.0000.01114.35
5.6.30.0090.00614.27
5.6.20.0050.00514.19
5.6.10.0100.00614.32
5.6.00.0000.01014.39
5.5.380.0100.00614.52
5.5.370.0060.00614.06
5.5.360.0090.00614.29
5.5.350.0170.04117.31
5.5.340.0100.04316.04
5.5.330.0100.04317.41
5.5.320.0130.04517.40
5.5.310.0080.02717.27
5.5.300.0070.04216.12
5.5.290.0060.02216.14
5.5.280.0020.02917.48
5.5.270.0040.02717.29
5.5.260.0050.04017.49
5.5.250.0080.03617.51
5.5.240.0060.03717.06
5.5.230.0040.01114.27
5.5.220.0030.00814.27
5.5.210.0000.01314.01
5.5.200.0060.00614.00
5.5.190.0040.01214.03
5.5.180.0060.00913.95
5.5.170.0070.01114.06
5.5.160.0060.00614.31
5.5.150.0070.00714.16
5.5.140.0100.00714.32
5.5.130.0020.01413.92
5.5.120.0030.00614.11
5.5.110.0030.00614.13
5.5.100.0040.00814.32
5.5.90.0100.00614.38
5.5.80.0070.00714.43
5.5.70.0000.01714.34
5.5.60.0140.00314.42
5.5.50.0070.00714.29
5.5.40.0040.00414.17
5.5.30.0090.00614.35
5.5.20.0040.01214.04
5.5.10.0000.01014.03
5.5.00.0030.00513.83
5.4.450.0650.02315.15
5.4.440.0450.03315.24
5.4.430.0450.02815.28
5.4.420.0330.00315.22
5.4.410.0100.03014.81
5.4.400.0070.03414.82
5.4.390.0100.02914.85
5.4.380.0130.03114.70
5.4.370.0120.03014.83
5.4.360.0150.02614.83
5.4.350.0060.02111.47
5.4.340.0030.02711.48
5.4.330.0030.01011.06
5.4.320.0070.02011.85
5.4.310.0070.02611.75
5.4.300.0020.02711.78
5.4.290.0060.02311.73
5.4.280.0050.02011.68
5.4.270.0070.01911.60
5.4.260.0050.02411.71
5.4.250.0050.02311.65
5.4.240.0020.02511.74
5.4.230.0060.02211.47
5.4.220.0070.02011.71
5.4.210.0050.02111.63
5.4.200.0060.02111.73
5.4.190.0040.03111.69
5.4.180.0070.02011.64
5.4.170.0050.01911.68
5.4.160.0070.01911.63
5.4.150.0060.01911.63
5.4.140.0060.02311.56
5.4.130.0050.02911.50
5.4.120.0060.01811.46
5.4.110.0040.02311.42
5.4.100.0050.02511.35
5.4.90.0060.02211.38
5.4.80.0040.02411.54
5.4.70.0040.02311.50
5.4.60.0070.02011.53
5.4.50.0080.02011.53
5.4.40.0060.02211.45
5.4.30.0060.02111.47
5.4.20.0040.02211.36
5.4.10.0050.02111.43
5.4.00.0030.02711.24
5.3.290.0060.02211.75
5.3.280.0040.02911.54
5.3.270.0060.02911.68
5.3.260.0090.02511.76
5.3.250.0070.02311.69
5.3.240.0060.02111.58
5.3.230.0040.02311.64
5.3.220.0080.01911.55
5.3.210.0050.02311.57
5.3.200.0050.02211.47
5.3.190.0020.02511.58
5.3.180.0060.02011.67
5.3.170.0100.01811.64
5.3.160.0050.02211.66
5.3.150.0070.02211.64
5.3.140.0090.01911.62
5.3.130.0070.02111.65
5.3.120.0060.02311.48
5.3.110.0050.02511.61
5.3.100.0040.02311.31
5.3.90.0030.02811.23
5.3.80.0060.02911.21
5.3.70.0130.01811.20
5.3.60.0070.02111.29
5.3.50.0080.02011.14
5.3.40.0070.02211.23
5.3.30.0050.02011.23
5.3.20.0020.02411.07
5.3.10.0050.02410.92
5.3.00.0090.02511.01
5.2.170.0100.0419.18
5.2.160.0090.0329.18
5.2.150.0060.0319.18
5.2.140.0050.0329.18
5.2.130.0090.0319.14
5.2.120.0090.0349.14
5.2.110.0100.0269.14
5.2.100.0080.0329.14
5.2.90.0050.0299.14
5.2.80.0030.0319.14
5.2.70.0050.0309.14
5.2.60.0070.0429.09
5.2.50.0090.0409.06
5.2.40.0050.0349.04
5.2.30.0040.0319.01
5.2.20.0090.0279.00
5.2.10.0120.0258.92
5.2.00.0060.0348.78
5.1.60.0040.0278.06
5.1.50.0070.0238.05
5.1.40.0040.0268.04
5.1.30.0110.0298.39
5.1.20.0050.0308.41
5.1.10.0060.0268.14
5.1.00.0070.0368.14
5.0.50.0080.0256.62
5.0.40.0050.0286.48
5.0.30.0040.0336.29
5.0.20.0060.0246.27
5.0.10.0050.0196.24
5.0.00.0050.0306.23
4.4.90.0040.0154.78
4.4.80.0040.0164.76
4.4.70.0010.0204.76
4.4.60.0050.0194.75
4.4.50.0050.0154.77
4.4.40.0050.0244.71
4.4.30.0030.0164.76
4.4.20.0050.0154.85
4.4.10.0050.0184.85
4.4.00.0040.0334.75
4.3.110.0030.0224.67
4.3.100.0030.0164.66
4.3.90.0040.0134.64
4.3.80.0050.0234.58
4.3.70.0020.0164.63
4.3.60.0000.0184.63
4.3.50.0040.0154.62
4.3.40.0030.0244.54
4.3.30.0020.0173.29
4.3.20.0020.0173.27
4.3.10.0050.0193.23
4.3.00.0030.01313.47

preferences:
48.54 ms | 400 KiB | 5 Q