3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $str = "This is nice"; substr_count($str,"is",11,9); ?>

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.0120.00916.75
8.3.50.0090.00921.24
8.3.40.0100.00318.52
8.3.30.0070.00718.92
8.3.20.0040.00720.36
8.3.10.0050.00321.85
8.3.00.0030.00623.61
8.2.180.0040.01116.63
8.2.170.0070.01322.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.13
8.2.120.0040.00426.35
8.2.110.0060.00319.33
8.2.100.0060.00617.80
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0030.00617.92
8.2.50.0000.01018.09
8.2.40.0030.00622.20
8.2.30.0050.00219.50
8.2.20.0000.00717.62
8.2.10.0000.00718.10
8.2.00.0000.00718.05
8.1.280.0040.01125.92
8.1.270.0080.00022.20
8.1.260.0040.00428.09
8.1.250.0030.00628.09
8.1.240.0030.00622.55
8.1.230.0000.01217.77
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0030.00518.52
8.1.160.0000.00820.70
8.1.150.0080.00020.61
8.1.140.0030.00619.62
8.1.130.0070.00017.57
8.1.120.0040.00417.29
8.1.110.0000.00817.27
8.1.100.0050.00217.31
8.1.90.0040.00417.34
8.1.80.0000.00717.36
8.1.70.0000.00717.45
8.1.60.0040.00417.54
8.1.50.0080.00017.52
8.1.40.0030.00917.43
8.1.30.0040.00417.69
8.1.20.0030.00617.62
8.1.10.0070.00017.59
8.1.00.0030.00517.39
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0040.00418.35
8.0.270.0030.00617.16
8.0.260.0000.00817.16
8.0.250.0000.00616.85
8.0.240.0030.00517.05
8.0.230.0000.00716.86
8.0.220.0000.00716.93
8.0.210.0000.00716.76
8.0.200.0000.00616.91
8.0.190.0000.00816.88
8.0.180.0000.00816.85
8.0.170.0000.00816.93
8.0.160.0030.00316.99
8.0.150.0070.00016.84
8.0.140.0040.00416.86
8.0.130.0060.00013.29
8.0.120.0040.00416.85
8.0.110.0050.00216.74
8.0.100.0030.00316.77
8.0.90.0050.00316.77
8.0.80.0060.00916.92
8.0.70.0050.00316.91
8.0.60.0040.00416.86
8.0.50.0000.00716.77
8.0.30.0130.00517.12
8.0.20.0090.00917.40
8.0.10.0060.00316.86
8.0.00.0070.01216.72
7.4.330.0030.00316.84
7.4.320.0030.00316.53
7.4.300.0030.00316.40
7.4.290.0000.01116.57
7.4.280.0000.00716.50
7.4.270.0000.00716.30
7.4.260.0000.00716.56
7.4.250.0000.00816.39
7.4.240.0000.00716.53
7.4.230.0030.00316.64
7.4.220.0140.01416.48
7.4.210.0120.01016.54
7.4.200.0030.00316.60
7.4.160.0040.01116.34
7.4.150.0130.00417.40
7.4.140.0080.01217.86
7.4.130.0090.01016.51
7.4.120.0030.01716.40
7.4.110.0100.00716.51
7.4.100.0100.00716.33
7.4.90.0120.00616.32
7.4.80.0100.00719.39
7.4.70.0090.01316.46
7.4.60.0090.00616.41
7.4.50.0100.00716.49
7.4.40.0150.00316.34
7.4.30.0060.01316.68
7.4.00.0080.00815.01
7.3.330.0060.00013.11
7.3.320.0030.00313.07
7.3.310.0000.00716.05
7.3.300.0030.00316.25
7.3.290.0070.01016.17
7.3.280.0110.00816.19
7.3.270.0070.01017.40
7.3.260.0070.01016.18
7.3.250.0100.00816.31
7.3.240.0100.00816.29
7.3.230.0110.00716.41
7.3.210.0110.00916.46
7.3.200.0150.00319.39
7.3.190.0090.00616.50
7.3.180.0100.00716.30
7.3.170.0130.00316.36
7.3.160.0090.00616.28
7.2.330.0030.01516.51
7.2.320.0060.01216.55
7.2.310.0070.01016.36
7.2.300.0090.00916.38
7.2.290.0130.01016.21
7.2.60.0100.00316.81
7.2.00.0120.00019.46
7.1.200.0060.00615.80
7.1.100.0120.00617.92
7.1.70.0060.00316.96
7.1.60.0060.01019.40
7.1.50.0110.01834.45
7.1.00.0070.07322.54
7.0.200.0090.00016.79
7.0.60.0230.03719.87
7.0.50.0070.08317.83
7.0.40.0070.04320.03
7.0.30.0200.06020.02
7.0.20.0200.08320.01
7.0.10.0030.04320.17
7.0.00.0070.08020.03
5.6.280.0030.05321.11
5.6.210.0130.08020.60
5.6.200.0100.03318.12
5.6.190.0070.06020.35
5.6.180.0330.07020.39
5.6.170.0370.08020.38
5.6.160.0100.08020.44
5.6.150.0130.07718.08
5.6.140.0070.04018.10
5.6.130.0070.08018.09
5.6.120.0070.03720.89
5.6.110.0100.08020.95
5.6.100.0100.07721.13
5.6.90.0070.06720.96
5.6.80.0030.07320.50
5.5.350.3200.04320.45
5.5.340.0130.03317.89
5.5.330.0070.07320.19
5.5.320.0430.07720.17
5.5.310.0130.04020.12
5.5.300.0000.04017.92
5.5.290.0100.08017.92
5.5.280.0030.04020.86
5.5.270.0170.04720.86
5.5.260.0030.04320.88
5.5.250.0030.07320.65
5.5.240.0200.05720.36

preferences:
55.13 ms | 401 KiB | 5 Q