3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_thing = "thisismy.image.jpg"; $last_dot = strrpos($my_thing, "."); $ext = substr($my_thing, $last_dot); $string = "MICROSOFT CORP CIK#: 0000789019 (see all company filings)"; $newString = substr($string, 0, strpos($string, " CIK#")); echo $newString;

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.0150.00618.18
8.3.50.0140.00322.05
8.3.40.0140.00718.67
8.3.30.0060.00620.17
8.3.20.0040.00420.21
8.3.10.0040.00422.15
8.3.00.0050.00322.30
8.2.180.0170.00316.50
8.2.170.0150.00022.96
8.2.160.0070.00720.55
8.2.150.0140.00724.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00419.66
8.2.110.0070.00320.35
8.2.100.0070.00417.72
8.2.90.0070.00019.08
8.2.80.0060.00319.28
8.2.70.0080.00017.63
8.2.60.0070.00018.05
8.2.50.0040.00418.07
8.2.40.0040.00417.92
8.2.30.0050.00317.93
8.2.20.0030.00617.65
8.2.10.0000.00817.66
8.2.00.0000.00917.62
8.1.280.0180.00325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00322.20
8.1.230.0080.00322.78
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0090.00017.10
8.1.190.0040.00417.50
8.1.180.0000.00819.01
8.1.170.0030.00518.63
8.1.160.0040.00422.19
8.1.150.0040.00418.61
8.1.140.0030.00617.46
8.1.130.0030.00317.86
8.1.120.0040.00417.42
8.1.110.0000.00717.39
8.1.100.0000.00817.30
8.1.90.0040.00417.27
8.1.80.0070.00017.40
8.1.70.0030.00317.32
8.1.60.0070.00317.40
8.1.50.0000.00817.40
8.1.40.0000.00717.43
8.1.30.0040.00417.55
8.1.20.0000.00817.51
8.1.10.0000.00717.51
8.1.00.0030.00517.48
8.0.300.0030.00618.77
8.0.290.0000.00717.18
8.0.280.0030.00618.44
8.0.270.0030.00317.25
8.0.260.0000.00816.86
8.0.250.0000.00716.85
8.0.240.0060.00317.01
8.0.230.0070.00016.92
8.0.220.0030.00316.88
8.0.210.0000.00716.85
8.0.200.0000.00616.88
8.0.190.0070.00016.87
8.0.180.0030.00316.75
8.0.170.0020.00516.74
8.0.160.0050.00216.76
8.0.150.0040.00316.68
8.0.140.0000.00816.69
8.0.130.0050.00013.32
8.0.120.0000.00816.62
8.0.110.0030.00516.80
8.0.100.0000.00716.68
8.0.90.0000.00716.93
8.0.80.0100.01016.74
8.0.70.0070.00016.66
8.0.60.0040.00416.76
8.0.50.0040.00416.88
8.0.30.0070.01316.95
8.0.20.0100.00817.40
8.0.10.0000.00716.81
8.0.00.0060.01216.68
7.4.330.0050.00015.00
7.4.320.0070.00016.51
7.4.300.0030.00316.36
7.4.290.0040.00416.50
7.4.280.0030.00316.48
7.4.270.0000.00816.59
7.4.260.0090.00016.38
7.4.250.0070.00016.37
7.4.240.0010.00616.42
7.4.230.0000.00716.33
7.4.220.0110.00616.60
7.4.210.0060.01016.45
7.4.200.0070.00016.27
7.4.190.0040.00416.53
7.4.160.0080.00816.50
7.4.150.0060.01217.40
7.4.140.0160.00417.86
7.4.130.0120.00516.41
7.4.120.0100.01216.48
7.4.110.0100.00616.41
7.4.100.0110.00616.49
7.4.90.0030.01416.46
7.4.80.0060.01219.39
7.4.70.0070.01116.39
7.4.60.0090.01616.43
7.4.50.0000.00816.40
7.4.40.0040.00822.77
7.4.30.0100.00716.45
7.4.00.0050.01114.92
7.3.330.0020.00212.95
7.3.320.0030.00313.11
7.3.310.0000.00715.98
7.3.300.0080.00016.04
7.3.290.0040.01116.23
7.3.280.0040.01116.30
7.3.270.0090.01217.40
7.3.260.0130.00616.52
7.3.250.0070.01016.43
7.3.240.0070.01016.46
7.3.230.0130.01016.39
7.3.210.0030.01316.29
7.3.200.0090.00619.39
7.3.190.0100.01016.54
7.3.180.0000.01516.19
7.3.170.0070.00716.27
7.3.160.0030.01316.50
7.3.120.0110.00514.88
7.3.110.0060.01214.49
7.3.100.0090.00614.68
7.3.90.0090.00614.98
7.3.80.0040.00814.80
7.3.70.0040.00714.54
7.3.60.0070.00314.83
7.3.50.0060.00914.47
7.3.40.0040.00814.81
7.3.30.0050.00514.75
7.3.20.0070.00716.61
7.3.10.0090.00616.64
7.3.00.0070.01016.33
7.2.330.0080.00816.42
7.2.320.0090.01316.37
7.2.310.0050.01216.63
7.2.300.0060.01116.64
7.2.290.0050.01116.61
7.2.250.0120.00615.13
7.2.240.0070.01314.65
7.2.230.0060.01014.62
7.2.220.0030.00614.89
7.2.210.0080.00814.94
7.2.200.0030.01014.93
7.2.190.0060.00614.95
7.2.180.0090.00614.83
7.2.170.0040.01115.00
7.2.00.0080.00619.52
7.1.330.0030.01115.92
7.1.320.0040.01115.68
7.1.310.0070.00315.64
7.1.300.0060.00615.59
7.1.290.0060.00615.43
7.1.280.0060.00315.76
7.1.270.0040.00715.95
7.1.260.0070.00716.00
7.1.100.0070.01118.05
7.1.70.0000.01317.23
7.1.60.0120.01219.43
7.1.50.0070.00716.94
7.1.00.0030.07722.31
7.0.200.0000.00916.54
7.0.140.0030.07322.07
7.0.60.0000.04319.93
7.0.50.0070.04717.89
7.0.40.0100.08320.27
7.0.30.0330.07020.20
7.0.20.0230.06020.12
7.0.10.0100.04320.06
7.0.00.0030.05720.32
5.6.280.0030.07020.89
5.6.210.0030.07020.60
5.6.200.0030.05718.22
5.6.190.0070.08720.77
5.6.180.0330.07320.67
5.6.170.0130.05320.44
5.6.160.0030.08720.38
5.6.150.0070.07718.07
5.6.140.0100.04718.21
5.6.130.0030.04318.05
5.6.120.0070.06321.01
5.6.110.0030.09021.00
5.6.100.0130.07021.00
5.6.90.0130.08020.98
5.6.80.0130.06020.27
5.5.350.0100.06020.40
5.5.340.0170.07318.00
5.5.330.0130.03720.47
5.5.320.0030.06020.18
5.5.310.0300.04720.21
5.5.300.0100.04318.02
5.5.290.0030.05717.96
5.5.280.0100.08320.76
5.5.270.0070.04020.76
5.5.260.0130.07320.95
5.5.250.0000.04320.68
5.5.240.2970.03720.02
5.4.450.0100.05719.27
5.4.440.0630.05019.47
5.4.430.0330.05719.09
5.4.420.0130.05319.35
5.4.410.0100.05318.84
5.4.400.0270.05718.54
5.4.390.0300.05718.65
5.4.380.0300.06318.49
5.4.370.0200.05718.71
5.4.360.0370.07318.52
5.4.350.0080.03811.97
5.4.340.0120.03711.96
5.4.320.0050.03612.45
5.4.310.0050.03812.45
5.4.300.0060.03612.45
5.4.290.0040.04112.45
5.4.280.0080.03412.35
5.4.270.0070.03412.34
5.4.260.0050.03712.34
5.4.250.0100.03812.34
5.3.290.0040.04012.80
4.3.00.0030.0206.79

preferences:
65.82 ms | 401 KiB | 5 Q