3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flavor = "Cookie Dough"; $search_term = "Cookie"; if (stripos($search_term,$flavor) !== false) { echo "Randy's favorite flavor of ice cream contains the search term '" . $search_term . "'."; } else { echo "Randy's favorite flavor of ice cream does NOT contain the search term '" . $search_term . "'."; } ?>

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.0000.01516.49
8.3.50.0160.00622.88
8.3.40.0140.00018.76
8.3.30.0040.01118.92
8.3.20.0070.00020.11
8.3.10.0050.00223.48
8.3.00.0080.00019.13
8.2.180.0070.00716.75
8.2.170.0000.01522.96
8.2.160.0070.00720.40
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.02
8.2.110.0090.00322.25
8.2.100.0000.01118.03
8.2.90.0000.00818.96
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0000.00819.82
8.2.30.0040.00417.98
8.2.20.0080.00017.68
8.2.10.0070.00018.10
8.2.00.0000.00717.63
8.1.280.0110.01125.92
8.1.270.0080.00023.84
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00023.71
8.1.230.0030.00719.00
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0030.00717.48
8.1.190.0040.00417.35
8.1.180.0000.00819.13
8.1.170.0040.00418.64
8.1.160.0000.00722.00
8.1.150.0070.00019.01
8.1.140.0000.00717.48
8.1.130.0070.00017.82
8.1.120.0000.00717.43
8.1.110.0050.00317.39
8.1.100.0030.00517.44
8.1.90.0040.00417.33
8.1.80.0070.00017.41
8.1.70.0070.00017.41
8.1.60.0030.00617.48
8.1.50.0060.00317.47
8.1.40.0000.00717.45
8.1.30.0030.00517.49
8.1.20.0050.00317.54
8.1.10.0000.00717.48
8.1.00.0000.00717.40
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.51
8.0.270.0030.00317.26
8.0.260.0070.00017.16
8.0.250.0050.00217.00
8.0.240.0000.00816.97
8.0.230.0000.00616.91
8.0.220.0000.00716.87
8.0.210.0000.00816.79
8.0.200.0000.00616.96
8.0.190.0050.00316.82
8.0.180.0000.00716.86
8.0.170.0050.00216.81
8.0.160.0000.00816.86
8.0.150.0020.00516.76
8.0.140.0050.00216.69
8.0.130.0050.00013.25
8.0.120.0040.00416.84
8.0.110.0030.00516.81
8.0.100.0070.00016.99
8.0.90.0000.00816.92
8.0.80.0060.00916.84
8.0.70.0040.00416.80
8.0.60.0050.00316.62
8.0.50.0070.00016.77
8.0.30.0090.01216.93
8.0.20.0080.01817.40
8.0.10.0040.00416.75
8.0.00.0090.00816.52
7.4.330.0050.00015.19
7.4.320.0000.00616.57
7.4.300.0080.00016.43
7.4.290.0000.00716.52
7.4.280.0050.00516.61
7.4.270.0000.00716.66
7.4.260.0000.00816.39
7.4.250.0050.00216.54
7.4.240.0060.00216.60
7.4.230.0040.00416.63
7.4.220.0090.00916.61
7.4.210.0060.01016.60
7.4.200.0030.00316.65
7.4.160.0080.01016.51
7.4.150.0070.01217.40
7.4.140.0090.01217.86
7.4.130.0100.00616.50
7.4.120.0090.00816.54
7.4.110.0090.00916.43
7.4.100.0170.00016.49
7.4.90.0080.00816.46
7.4.80.0090.01119.39
7.4.70.0040.01216.49
7.4.60.0030.01516.59
7.4.50.0040.00416.52
7.4.40.0040.01416.47
7.4.30.0070.00716.59
7.4.00.0090.00714.93
7.3.330.0000.00513.03
7.3.320.0060.00013.11
7.3.310.0030.00316.22
7.3.300.0000.00716.18
7.3.290.0120.00316.26
7.3.280.0080.00916.27
7.3.270.0130.00317.40
7.3.260.0040.01716.30
7.3.250.0110.00516.46
7.3.240.0090.01316.42
7.3.230.0090.01316.39
7.3.210.0090.00916.16
7.3.200.0120.00419.39
7.3.190.0030.01316.25
7.3.180.0090.00916.57
7.3.170.0030.01316.27
7.3.160.0090.00616.23
7.3.120.0110.00715.04
7.3.110.0100.00314.54
7.3.100.0060.00914.79
7.3.90.0070.00714.70
7.3.80.0070.00714.75
7.3.70.0070.00314.61
7.3.60.0030.00714.93
7.3.50.0070.00714.77
7.3.40.0070.00714.76
7.3.30.0060.00614.88
7.3.20.0040.00416.54
7.3.10.0040.01116.52
7.3.00.0080.00016.39
7.2.330.0150.00316.73
7.2.320.0100.00716.42
7.2.310.0030.01316.37
7.2.300.0140.00316.63
7.2.290.0120.00416.43
7.2.250.0030.01015.16
7.2.240.0090.00915.22
7.2.230.0130.00614.79
7.2.220.0000.01114.62
7.2.210.0040.00714.93
7.2.200.0030.00914.96
7.2.190.0030.00914.96
7.2.180.0060.00614.76
7.2.170.0030.00615.19
7.2.60.0120.00317.01
7.2.00.0070.00719.58
7.1.330.0060.00615.63
7.1.320.0030.00615.91
7.1.310.0040.00415.74
7.1.300.0000.00815.82
7.1.290.0060.00615.75
7.1.280.0000.01415.68
7.1.270.0110.00415.40
7.1.260.0100.00315.95
7.1.200.0000.01015.91
7.1.100.0000.01518.14
7.1.70.0000.00716.87
7.1.60.0070.01719.40
7.1.50.0030.01016.97
7.1.00.0030.07722.36
7.0.200.0040.00416.79
7.0.140.0000.07022.00
7.0.60.0170.07019.96
7.0.50.0070.04017.79
7.0.40.0000.04720.04
7.0.30.0270.04320.21
7.0.20.0300.06020.18
7.0.10.0300.04720.00
7.0.00.0030.04320.12
5.6.280.0100.06721.13
5.6.210.0100.08320.54
5.6.200.0070.07018.18
5.6.190.0100.08020.56
5.6.180.0230.04020.77
5.6.170.0400.05720.52
5.6.160.0030.07320.38
5.6.150.0000.05318.16
5.6.140.0100.07718.20
5.6.130.0070.08718.18
5.6.120.0070.09021.02
5.6.110.0070.05720.96
5.6.100.0030.08321.11
5.6.90.0200.07321.10
5.6.80.0100.08320.50
5.6.70.4470.03720.34
5.5.350.0100.08720.30
5.5.340.0070.04317.92
5.5.330.0100.08020.56
5.5.320.0400.08320.17
5.5.310.0230.03320.29
5.5.300.0130.03318.05
5.5.290.0070.07018.02
5.5.280.0100.08020.76
5.5.270.0000.04720.84
5.5.260.0000.04320.87
5.5.250.0070.08320.79
5.5.240.3100.02720.07
5.4.450.0330.04719.49
5.4.440.0470.04319.54
5.4.430.0200.04019.25
5.4.420.0130.04719.13
5.4.410.0300.04319.13
5.4.400.0200.04719.08
5.4.390.0230.04719.08
5.4.380.0270.05718.77
5.4.370.0270.05718.59
5.4.360.0370.05018.49
5.4.350.0400.07318.76
5.4.340.0230.06018.63
5.4.320.0060.03712.46
5.4.310.0130.04112.45
5.4.300.0040.04012.46
5.4.290.0100.03512.45
5.4.280.0060.03712.35
5.4.270.0090.03412.35
5.4.260.0060.03812.35
5.4.250.0060.03812.35
5.4.240.0040.03812.35
5.4.230.0060.04212.34
5.4.220.0070.03512.34
5.4.210.0050.03712.34
5.4.200.0080.03712.34
5.4.190.0070.03512.34
5.4.180.0050.03712.34
5.4.170.0080.03412.35
5.4.160.0060.03712.34
5.4.150.0060.03612.34
5.4.140.0060.04012.03
5.4.130.0050.03712.01
5.4.120.0060.04211.97
5.4.110.0060.04511.96
5.4.100.0020.03911.96
5.4.90.0080.03511.97
5.4.80.0070.03611.96
5.4.70.0080.03411.96
5.4.60.0060.03411.96
5.4.50.0070.03411.96
5.4.40.0080.03411.95
5.4.30.0070.03811.95
5.4.20.0070.03311.95
5.4.10.0060.03311.95
5.4.00.0060.03611.44
5.3.290.0070.04212.80
5.3.280.0060.04112.71
5.3.270.0050.04012.72
5.3.260.0080.03712.71
5.3.250.0070.03612.71
5.3.240.0050.03812.71
5.3.230.0060.03812.71
5.3.220.0070.03612.68
5.3.210.0070.03812.68
5.3.200.0080.03812.68
5.3.190.0070.03712.68
5.3.180.0070.03812.67
5.3.170.0080.03412.67
5.3.160.0030.03912.67
5.3.150.0050.04112.67
5.3.140.0030.03912.66
5.3.130.0070.03812.66
5.3.120.0070.04512.66
5.3.110.0080.03612.66
5.3.100.0070.03612.12
5.3.90.0050.03712.08
5.3.80.0060.03812.07
5.3.70.0040.03712.08
5.3.60.0030.03912.06
5.3.50.0070.03512.00
5.3.40.0060.03612.00
5.3.30.0100.03111.94
5.3.20.0080.04011.72
5.3.10.0100.04011.69
5.3.00.0050.05211.68
5.2.170.0070.0319.18
5.2.160.0070.0269.18
5.2.150.0030.0329.18
5.2.140.0020.0339.17
5.2.130.0040.0309.13
5.2.120.0040.0369.14
5.2.110.0030.0359.14
5.2.100.0070.0339.14
5.2.90.0040.0309.14
5.2.80.0060.0299.14
5.2.70.0060.0359.13
5.2.60.0060.0349.09
5.2.50.0050.0299.06
5.2.40.0050.0289.03
5.2.30.0060.0299.01
5.2.20.0030.0308.99
5.2.10.0050.0288.91
5.2.00.0050.0288.78
5.1.60.0040.0248.06
5.1.50.0030.0268.06
5.1.40.0060.0248.04
5.1.30.0070.0248.39
5.1.20.0090.0288.41
5.1.10.0020.0328.14
5.1.00.0070.0298.14
5.0.50.0040.0206.62
5.0.40.0030.0196.47
5.0.30.0060.0296.29
5.0.20.0020.0216.26
5.0.10.0020.0216.23
5.0.00.0030.0316.23
4.4.90.0030.0164.78
4.4.80.0020.0204.75
4.4.70.0010.0184.75
4.4.60.0020.0174.75
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0030.0194.76
4.4.20.0010.0174.84
4.4.10.0040.0144.85
4.4.00.0040.0284.76
4.3.110.0040.0184.67
4.3.100.0030.0154.67
4.3.90.0020.0194.63
4.3.80.0050.0304.59
4.3.70.0010.0174.63
4.3.60.0010.0174.63
4.3.50.0030.0174.63
4.3.40.0030.0264.54
4.3.30.0030.0163.28
4.3.20.0010.0173.26
4.3.10.0040.0143.22
4.3.00.0030.01715.66

preferences:
47.56 ms | 401 KiB | 5 Q