3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Here\'s some text and stuff what is your favorite color? @OTHER["favorite color"] Whats your favorite food? @OTHER["favorite food"]'; while(strpos($text, "@OTHER[") !== false){ $start = strpos($text, '@OTHER["'); $stop = strpos($text, '"]', $start); echo substr($text, $start, $stop-$start); exit; }

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.0040.01118.43
8.3.50.0130.00721.80
8.3.40.0170.00318.89
8.3.30.0100.00318.79
8.3.20.0000.00820.20
8.3.10.0040.00420.41
8.3.00.0080.00019.38
8.2.180.0100.01016.63
8.2.170.0070.01122.96
8.2.160.0030.01220.52
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0030.00526.16
8.2.120.0050.00222.23
8.2.110.0060.00322.06
8.2.100.0070.00417.84
8.2.90.0060.00319.06
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0000.00818.00
8.2.30.0030.00619.35
8.2.20.0040.00417.73
8.2.10.0000.00818.11
8.2.00.0090.00017.84
8.1.280.0030.01225.92
8.1.270.0060.00322.14
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00023.92
8.1.230.0000.01119.16
8.1.220.0040.00417.74
8.1.210.0070.00018.77
8.1.200.0060.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.60
8.1.160.0070.00022.00
8.1.150.0000.00718.84
8.1.140.0040.00417.30
8.1.130.0040.00417.83
8.1.120.0040.00417.30
8.1.110.0000.00917.27
8.1.100.0000.00717.39
8.1.90.0000.00717.38
8.1.80.0000.00717.29
8.1.70.0050.00217.29
8.1.60.0040.00417.49
8.1.50.0050.00317.51
8.1.40.0030.00517.43
8.1.30.0000.00817.67
8.1.20.0030.00517.62
8.1.10.0000.00717.42
8.1.00.0070.00017.47
8.0.300.0040.00419.14
8.0.290.0000.00716.88
8.0.280.0030.00318.55
8.0.270.0030.00317.27
8.0.260.0000.00717.20
8.0.250.0070.00017.04
8.0.240.0000.00717.00
8.0.230.0050.00316.83
8.0.220.0020.00516.78
8.0.210.0000.00716.80
8.0.200.0030.00316.96
8.0.190.0020.00516.89
8.0.180.0070.00016.89
8.0.170.0040.00416.93
8.0.160.0000.00716.94
8.0.150.0030.00316.81
8.0.140.0040.00416.75
8.0.130.0060.00313.29
8.0.120.0040.00416.90
8.0.110.0070.00016.85
8.0.100.0000.00716.70
8.0.90.0030.00316.79
8.0.80.0090.00616.93
8.0.70.0040.00416.80
8.0.60.0030.00516.93
8.0.50.0070.00016.93
8.0.30.0130.01016.98
8.0.20.0090.00917.40
8.0.10.0040.00416.90
8.0.00.0060.01116.95
7.4.330.0060.00015.10
7.4.320.0030.00316.52
7.4.300.0000.00616.64
7.4.290.0000.00716.64
7.4.280.0040.00416.61
7.4.270.0030.00316.55
7.4.260.0040.00416.48
7.4.250.0000.00916.56
7.4.240.0020.00516.59
7.4.230.0000.00716.39
7.4.220.0060.01216.64
7.4.210.0060.01316.45
7.4.200.0070.00016.50
7.4.160.0060.01016.52
7.4.150.0110.00917.40
7.4.140.0080.01017.86
7.4.130.0070.01016.62
7.4.120.0110.00616.42
7.4.110.0060.01316.45
7.4.100.0100.01016.43
7.4.90.0090.01016.43
7.4.80.0100.00719.39
7.4.70.0110.00616.54
7.4.60.0140.00316.45
7.4.50.0050.00316.56
7.4.40.0090.00616.56
7.4.30.0050.01216.66
7.4.00.0030.01014.87
7.3.330.0050.00013.04
7.3.320.0060.00013.07
7.3.310.0030.00316.40
7.3.300.0030.00316.32
7.3.290.0120.00316.21
7.3.280.0060.01016.28
7.3.270.0120.00817.40
7.3.260.0030.01616.45
7.3.250.0100.00616.38
7.3.240.0100.00616.60
7.3.230.0130.00316.39
7.3.210.0090.01216.30
7.3.200.0030.01619.39
7.3.190.0110.00716.35
7.3.180.0030.01316.32
7.3.170.0120.00316.27
7.3.160.0090.00616.31
7.2.330.0060.01216.46
7.2.320.0080.00816.36
7.2.310.0090.00916.58
7.2.300.0100.00616.49
7.2.290.0040.01216.32
7.2.60.0050.00317.00
7.1.200.0060.00615.84
7.1.70.0040.01817.02
7.1.60.0130.01019.12
7.1.50.0260.01034.58
7.1.00.0100.06722.36
7.0.200.0030.00616.75
7.0.140.0030.07022.21
7.0.60.0130.08019.96
7.0.50.0100.06317.90
7.0.40.0030.04720.40
7.0.30.0270.08320.01
7.0.20.0230.07720.09
7.0.10.0170.05020.33
7.0.00.0130.07720.19
5.6.280.0100.06720.81
5.6.210.0130.06320.57
5.6.200.0070.08318.08
5.6.190.0230.07320.64
5.6.180.0100.04720.64
5.6.170.0170.04020.33
5.6.160.0070.06320.61
5.6.150.0130.03318.17
5.6.140.0070.08018.12
5.6.130.0030.04718.21
5.6.120.0000.08721.13
5.6.110.0030.04321.14
5.6.100.0100.08021.07
5.6.90.0030.08720.96
5.6.80.0030.04320.43
5.6.70.4270.04720.27
5.5.350.0100.08020.38
5.5.340.0070.04318.02
5.5.330.0130.08020.57
5.5.320.0330.06320.50
5.5.310.0270.03720.27
5.5.300.0100.03318.02
5.5.290.0130.07717.88
5.5.280.0130.06020.87
5.5.270.0100.07320.76
5.5.260.0070.08720.96
5.5.250.0170.03020.61
5.5.240.0100.06020.26
5.4.450.0330.03719.46
5.4.440.0500.04319.54
5.4.430.0330.04019.45
5.4.420.0170.03319.45
5.4.410.0230.05019.45
5.4.400.0270.04019.45
5.4.390.0470.04019.45
5.4.380.0330.07718.53
5.4.370.0300.05018.72
5.4.360.0300.05718.56
5.4.350.0270.06018.78
5.4.340.0430.04718.67
5.4.320.0050.04812.45
5.4.310.0050.03912.45
5.4.300.0070.03712.45
5.4.290.0110.04512.45
5.4.280.0110.03712.35
5.4.270.0050.04112.35
5.4.260.0060.04112.35
5.4.250.0070.03912.35
5.4.240.0050.04212.35
5.4.230.0090.05012.34
5.4.220.0090.04712.34
5.4.210.0110.03512.34
5.4.200.0070.03812.34
5.4.190.0050.03812.34
5.4.180.0050.03912.34
5.4.170.0060.03812.35
5.4.160.0090.04212.35
5.4.150.0130.03912.34
5.4.140.0050.04912.03
5.4.130.0090.04512.01
5.4.120.0060.04111.97
5.4.110.0070.03411.96
5.4.100.0050.03611.96
5.4.90.0030.04011.96
5.4.80.0090.03411.96
5.4.70.0090.03211.96
5.4.60.0050.03611.96
5.4.50.0080.03411.96
5.4.40.0050.03611.95
5.4.30.0110.03311.95
5.4.20.0060.03711.95
5.4.10.0020.04011.95
5.4.00.0060.04311.44
5.3.290.0090.03912.80
5.3.280.0070.04012.71
5.3.270.0060.04112.73
5.3.260.0100.03812.72
5.3.250.0050.04412.72
5.3.240.0050.03912.72
5.3.230.0070.03712.71
5.3.220.0080.03612.68
5.3.210.0070.03812.68
5.3.200.0070.03712.68
5.3.190.0060.04412.68
5.3.180.0070.03812.67
5.3.170.0060.03812.67
5.3.160.0070.04012.68
5.3.150.0110.03412.67
5.3.140.0080.03912.66
5.3.130.0060.04012.66
5.3.120.0110.04112.66
5.3.110.0080.04112.66
5.3.100.0080.04212.12
5.3.90.0080.04112.08
5.3.80.0060.05012.08
5.3.70.0130.04412.07
5.3.60.0110.04712.06
5.3.50.0100.04512.00
5.3.40.0020.04012.00
5.3.30.0070.03711.95
5.3.20.0040.04011.72
5.3.10.0050.03511.69
5.3.00.0080.03511.68
5.2.170.0030.0339.18
5.2.160.0050.0299.18
5.2.150.0050.0309.18
5.2.140.0050.0329.18
5.2.130.0040.0319.14
5.2.120.0080.0319.14
5.2.110.0040.0319.15
5.2.100.0090.0279.14
5.2.90.0060.0379.14
5.2.80.0050.0429.14
5.2.70.0030.0389.14
5.2.60.0050.0329.09
5.2.50.0070.0409.06
5.2.40.0070.0359.04
5.2.30.0040.0389.01
5.2.20.0070.0299.00
5.2.10.0050.0298.93
5.2.00.0020.0328.79
5.1.60.0020.0278.06
5.1.50.0020.0288.06
5.1.40.0040.0328.05
5.1.30.0100.0308.39
5.1.20.0030.0308.42
5.1.10.0050.0288.14
5.1.00.0080.0268.14
5.0.50.0050.0196.62
5.0.40.0040.0196.48
5.0.30.0020.0326.29
5.0.20.0030.0196.27
5.0.10.0070.0176.24
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0010.0174.75
4.4.70.0070.0124.76
4.4.60.0040.0144.75
4.4.50.0030.0174.77
4.4.40.0050.0244.71
4.4.30.0040.0174.76
4.4.20.0010.0174.85
4.4.10.0040.0154.85
4.4.00.0030.0264.76
4.3.110.0040.0214.67
4.3.100.0040.0154.67
4.3.90.0030.0174.63
4.3.80.0030.0304.58
4.3.70.0040.0144.63
4.3.60.0020.0174.63
4.3.50.0050.0144.63
4.3.40.0020.0244.54
4.3.30.0010.0173.28
4.3.20.0020.0163.26
4.3.10.0030.0153.22
4.3.00.0030.01719.45

preferences:
45.43 ms | 401 KiB | 5 Q