3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thing = 'Tom Dallaway'; $one = strstr($thing, 'D'); $two = strstr($thing, ' ', true); echo $one;

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.00418.02
8.3.50.0110.00722.05
8.3.40.0110.00418.46
8.3.30.0100.00718.79
8.3.20.0000.00820.04
8.3.10.0040.00422.09
8.3.00.0080.00022.37
8.2.180.0040.01116.32
8.2.170.0070.01022.96
8.2.160.0070.01120.93
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00019.36
8.2.110.0040.00719.39
8.2.100.0040.00817.72
8.2.90.0030.00619.26
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0050.00517.93
8.2.50.0050.00318.07
8.2.40.0070.00018.22
8.2.30.0000.00717.92
8.2.20.0040.00417.57
8.2.10.0040.00417.84
8.2.00.0030.00517.78
8.1.280.0110.00725.92
8.1.270.0050.00322.09
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00922.14
8.1.230.0070.00419.00
8.1.220.0050.00317.78
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00917.28
8.1.180.0000.00718.56
8.1.170.0070.00018.63
8.1.160.0030.00522.04
8.1.150.0040.00418.56
8.1.140.0070.00017.44
8.1.130.0030.00317.77
8.1.120.0050.00317.25
8.1.110.0060.00317.41
8.1.100.0070.00017.39
8.1.90.0030.00317.38
8.1.80.0040.00417.36
8.1.70.0000.00717.27
8.1.60.0110.00017.58
8.1.50.0040.00417.42
8.1.40.0000.00817.33
8.1.30.0030.00617.56
8.1.20.0080.00017.41
8.1.10.0060.00317.54
8.1.00.0040.00417.32
8.0.300.0000.00918.77
8.0.290.0040.00417.18
8.0.280.0030.00318.49
8.0.270.0000.00817.27
8.0.260.0000.00716.70
8.0.250.0000.00716.86
8.0.240.0040.00416.96
8.0.230.0000.00716.86
8.0.220.0070.00016.86
8.0.210.0030.00316.86
8.0.200.0000.00816.76
8.0.190.0000.00816.90
8.0.180.0000.00716.87
8.0.170.0000.00716.85
8.0.160.0040.00316.69
8.0.150.0040.00416.71
8.0.140.0050.00216.83
8.0.130.0030.00313.33
8.0.120.0000.00716.73
8.0.110.0040.00416.77
8.0.100.0070.00016.61
8.0.90.0000.00816.85
8.0.80.0090.00616.82
8.0.70.0030.00616.86
8.0.60.0050.00316.68
8.0.50.0050.00216.68
8.0.30.0080.01416.89
8.0.20.0090.00917.40
8.0.10.0070.00016.94
8.0.00.0120.00916.60
7.4.330.0050.00015.00
7.4.320.0000.00616.39
7.4.300.0030.00316.48
7.4.290.0000.00616.42
7.4.280.0030.00316.50
7.4.270.0060.00016.58
7.4.260.0000.00716.51
7.4.250.0040.00416.30
7.4.240.0020.00516.51
7.4.230.0030.00316.59
7.4.220.0120.00816.38
7.4.210.0110.00416.43
7.4.200.0000.00716.53
7.4.190.0030.00316.29
7.4.160.0120.00316.67
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0050.01216.34
7.4.120.0080.00916.35
7.4.110.0110.00716.40
7.4.100.0080.00916.41
7.4.90.0200.00416.43
7.4.80.0140.00319.39
7.4.70.0070.01016.30
7.4.60.0130.00716.60
7.4.50.0040.00416.34
7.4.40.0100.00722.77
7.4.30.0160.00016.49
7.4.00.0120.00614.96
7.3.330.0070.00013.10
7.3.320.0060.00012.90
7.3.310.0070.00016.14
7.3.300.0000.00616.17
7.3.290.0130.00316.29
7.3.280.0050.00916.19
7.3.270.0090.00917.40
7.3.260.0090.00816.19
7.3.250.0080.01116.41
7.3.240.0060.01616.28
7.3.230.0100.00616.39
7.3.210.0090.00916.41
7.3.200.0080.00819.39
7.3.190.0070.01316.59
7.3.180.0090.00616.58
7.3.170.0130.01016.36
7.3.160.0130.01016.41
7.3.120.0040.01214.99
7.3.110.0070.00714.51
7.3.100.0120.00314.79
7.3.90.0060.00614.77
7.3.80.0030.00714.50
7.3.70.0080.00014.55
7.3.60.0000.01314.88
7.3.50.0040.00414.63
7.3.40.0090.00014.45
7.3.30.0060.00314.63
7.3.20.0000.01216.57
7.3.10.0060.00616.84
7.3.00.0080.00016.55
7.2.330.0100.01316.66
7.2.320.0030.01416.32
7.2.310.0030.01316.59
7.2.300.0110.01116.65
7.2.290.0070.01316.33
7.2.240.0000.00915.02
7.2.230.0100.00614.90
7.2.220.0030.00814.88
7.2.210.0120.00315.20
7.2.200.0060.00614.95
7.2.190.0030.01014.64
7.2.180.0040.01114.88
7.2.170.0110.00714.75
7.2.160.0060.00914.95
7.2.150.0070.00716.81
7.2.140.0030.00616.77
7.2.130.0050.00516.45
7.2.120.0030.01016.95
7.2.110.0130.00016.56
7.2.100.0030.00816.59
7.2.90.0080.00416.70
7.2.80.0000.01016.84
7.2.70.0090.00616.85
7.2.60.0030.01216.67
7.2.50.0030.01216.33
7.2.40.0030.00916.98
7.2.30.0140.00016.86
7.2.20.0060.00616.49
7.2.10.0030.01017.02
7.2.00.0020.01018.08
7.1.330.0040.00715.68
7.1.320.0090.00315.79
7.1.310.0070.00315.68
7.1.300.0060.00615.63
7.1.290.0070.00415.68
7.1.280.0000.01015.77
7.1.270.0030.00515.66
7.1.260.0040.01115.52
7.1.250.0040.00815.68
7.1.100.0000.01418.38
7.1.70.0000.00916.99
7.1.60.0030.02119.82
7.1.50.0000.01116.97
7.1.00.0030.07322.37
7.0.200.0000.01016.75
7.0.140.0070.06722.07
7.0.60.0030.04019.93
7.0.50.0070.07017.75
7.0.40.0230.07719.96
7.0.30.0270.07320.17
7.0.20.0370.07720.13
7.0.10.0370.07720.16
7.0.00.0070.04720.16
5.6.280.0070.06720.81
5.6.210.0130.06020.69
5.6.200.0100.08318.12
5.6.190.0130.07720.46
5.6.180.3570.04320.67
5.6.170.0300.07720.40
5.6.160.0030.05320.43
5.6.150.0130.06318.14
5.6.140.0030.08318.08
5.6.130.0070.08718.18
5.6.120.0070.05021.11
5.6.110.0070.08720.99
5.6.100.0200.06320.95
5.6.90.0000.04721.03
5.6.80.0070.04320.50
5.6.70.0230.03720.38
5.5.350.0030.08320.29
5.5.340.0170.07318.02
5.5.330.0100.04320.14
5.5.320.0230.08020.30
5.5.310.0230.04720.31
5.5.300.0030.03717.95
5.5.290.0100.07018.04
5.5.280.0270.03320.75
5.5.270.0100.04020.72
5.5.260.0030.05720.81
5.5.250.0200.06720.70
5.5.240.0070.07720.06
5.4.450.0270.05319.56
5.4.440.0130.05719.27
5.4.430.0130.05019.33
5.4.420.0070.05719.52
5.4.410.0030.06019.34
5.4.400.1130.00018.61
5.4.390.1530.00018.63
5.4.380.0330.04718.63
5.4.370.0500.04018.49
5.4.360.0270.05018.50
5.4.350.0330.04718.59
5.4.340.0300.05018.64
5.4.320.0090.04912.45
5.4.310.0080.04212.45
5.4.300.0090.03812.45
5.4.290.0100.03912.45
5.4.280.0080.03312.35
5.4.270.0140.06212.31
5.4.260.0090.04212.31
5.4.250.0150.06512.31
5.4.240.0070.05512.31
5.4.230.0090.07312.30
5.4.220.0070.05512.30
5.4.210.0090.05212.31
5.4.200.0120.07212.31
5.4.190.0160.04812.30
5.4.180.0210.08712.30
5.4.170.0140.08512.32
5.4.160.0170.06912.30
5.4.150.0100.05512.30
5.4.140.0100.04711.98
5.4.130.0070.05111.97
5.4.120.0130.05511.93
5.4.110.0150.07011.93
5.4.100.0160.06911.93
5.4.90.0080.04811.93
5.4.80.0240.17811.93
5.4.70.0070.04411.92
5.4.60.0080.03911.93
5.4.50.0090.04511.92
5.4.40.0070.03811.91
5.4.30.0100.03711.91
5.4.20.0080.04311.91
5.4.10.0060.07011.91
5.4.00.0120.08511.40
5.3.290.0110.03912.80
5.3.280.0110.06612.71
5.3.270.0150.10712.73
5.3.260.0140.16712.72
5.3.250.0120.05412.72
5.3.240.0080.04512.72
5.3.230.0120.10812.71
5.3.220.0170.05812.68
5.3.210.0150.07812.68
5.3.200.0150.08612.68
5.3.190.0180.07812.67
5.3.180.0140.05312.67
5.3.170.0100.04012.67
5.3.160.0100.04212.67
5.3.150.0090.04012.67
5.3.140.0050.04312.66
5.3.130.0100.04112.66
5.3.120.0080.04312.66
5.3.110.0060.04512.66
5.3.100.0100.05412.12
5.3.90.0260.05912.08
5.3.80.0110.03912.08
5.3.70.0080.04012.08
5.3.60.0060.04212.06
5.3.50.0100.03812.00
5.3.40.0140.05312.00
5.3.30.0130.05711.94
5.3.20.0060.04411.69
5.3.10.0070.03911.65
5.3.00.0080.04411.63
5.2.170.0050.0349.14
5.2.160.0160.0779.13
5.2.150.0120.0469.14
5.2.140.0090.0489.13
5.2.130.0120.0589.09
5.2.120.0050.0649.09
5.2.110.0110.0509.11
5.2.100.0090.0389.10
5.2.90.0040.0409.10
5.2.80.0050.0329.09
5.2.70.0060.0329.09
5.2.60.0110.0489.05
5.2.50.0060.0319.02
5.2.40.0050.0318.99
5.2.30.0040.0328.97
5.2.20.0050.0308.95
5.2.10.0070.0288.88
5.2.00.0050.0318.74
5.1.60.0050.0258.02
5.1.50.0040.0268.02
5.1.40.0020.0298.01
5.1.30.0050.0288.35
5.1.20.0050.0278.38
5.1.10.0070.0258.10
5.1.00.0070.0338.10
5.0.50.0070.0266.58
5.0.40.0030.0316.44
5.0.30.0080.0426.26
5.0.20.0030.0206.23
5.0.10.0070.0196.20
5.0.00.0050.0356.20
4.4.90.0060.0204.78
4.4.80.0060.0144.76
4.4.70.0040.0164.76
4.4.60.0050.0174.75
4.4.50.0040.0174.77
4.4.40.0060.0234.71
4.4.30.0030.0174.76
4.4.20.0030.0174.84
4.4.10.0020.0174.85
4.4.00.0050.0254.76
4.3.110.0030.0164.67
4.3.100.0020.0174.66
4.3.90.0040.0144.63
4.3.80.0010.0274.58
4.3.70.0030.0164.63
4.3.60.0030.0164.63
4.3.50.0060.0164.63
4.3.40.0010.0284.54
4.3.30.0030.0183.27
4.3.20.0040.0153.25
4.3.10.0030.0163.21
4.3.00.0000.0237.06

preferences:
45.25 ms | 400 KiB | 5 Q