3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'cats, e.g. Barsik, are funny. And it is true. So,'; $strN = ''; $found = $i = 0; do{ if($str[$i] == '.') $found++; $strN .= $str[$i]; $i++; }while($found != 3); echo $strN;

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.4.20.0080.00017.79
8.4.10.0070.01317.59
8.3.150.0100.01016.60
8.3.140.0130.00717.04
8.3.130.0060.00316.56
8.3.120.0060.00318.86
8.3.110.0000.00820.94
8.3.100.0060.00318.66
8.3.90.0040.00418.11
8.3.80.0040.00718.43
8.3.70.0100.01018.30
8.3.60.0160.00618.55
8.3.50.0110.00722.84
8.3.40.0040.01118.84
8.3.30.0140.00718.56
8.3.20.0040.00420.13
8.3.10.0040.00421.90
8.3.00.0040.00421.02
8.2.270.0080.01116.58
8.2.260.0000.00819.00
8.2.250.0000.00816.46
8.2.240.0070.01417.00
8.2.230.0040.00422.58
8.2.220.0000.00837.54
8.2.210.0030.00526.77
8.2.200.0040.00418.29
8.2.190.0000.01918.38
8.2.180.0150.00618.29
8.2.170.0100.01019.02
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00420.53
8.2.120.0040.00426.35
8.2.110.0060.00321.04
8.2.100.0040.00717.93
8.2.90.0000.00819.30
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0000.00919.21
8.2.50.0050.00318.10
8.2.40.0000.00820.63
8.2.30.0080.00019.38
8.2.20.0040.00417.61
8.2.10.0000.00718.11
8.2.00.0040.00418.02
8.1.310.0040.00416.61
8.1.300.0030.00618.00
8.1.290.0050.00518.88
8.1.280.0030.01025.92
8.1.270.0000.00822.17
8.1.260.0030.00628.09
8.1.250.0070.00028.09
8.1.240.0000.00919.27
8.1.230.0040.00817.83
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00718.25
8.1.160.0000.00718.88
8.1.150.0000.00718.93
8.1.140.0000.00719.57
8.1.130.0040.00417.62
8.1.120.0040.00417.38
8.1.110.0050.00217.50
8.1.100.0070.00017.45
8.1.90.0000.00717.41
8.1.80.0040.00417.49
8.1.70.0030.00317.46
8.1.60.0000.00717.54
8.1.50.0060.00317.42
8.1.40.0050.00317.54
8.1.30.0030.00617.65
8.1.20.0070.00017.58
8.1.10.0070.00017.55
8.1.00.0000.01117.39
8.0.300.0030.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.49
8.0.270.0040.00417.31
8.0.260.0030.00317.25
8.0.250.0000.00716.86
8.0.240.0030.00516.95
8.0.230.0040.00416.93
8.0.220.0000.00816.86
8.0.210.0000.00616.89
8.0.200.0070.00016.77
8.0.190.0000.00716.79
8.0.180.0040.00416.82
8.0.170.0000.00916.86
8.0.160.0030.00416.78
8.0.150.0040.00416.67
8.0.140.0000.00716.77
8.0.130.0050.00313.28
8.0.120.0000.00816.81
8.0.110.0040.00416.76
8.0.100.0060.00316.70
8.0.90.0000.00816.91
8.0.80.0030.01216.92
8.0.70.0070.00016.83
8.0.60.0070.00016.66
8.0.50.0040.00416.95
8.0.30.0050.01517.10
8.0.20.0130.00817.40
8.0.10.0070.00017.07
8.0.00.0120.00616.39
7.4.330.0050.00015.08
7.4.320.0040.00416.43
7.4.300.0090.00016.40
7.4.290.0040.00416.39
7.4.280.0070.00016.50
7.4.270.0060.00016.52
7.4.260.0000.00716.41
7.4.250.0030.00516.56
7.4.240.0010.00616.60
7.4.230.0000.00816.43
7.4.220.0110.00816.70
7.4.210.0070.00716.66
7.4.200.0070.00016.62
7.4.160.0060.01516.66
7.4.150.0100.00717.40
7.4.140.0110.01317.86
7.4.130.0100.01416.46
7.4.120.0090.00916.59
7.4.110.0060.01116.64
7.4.100.0120.00416.44
7.4.90.0060.01216.56
7.4.80.0070.01119.39
7.4.70.0070.00816.70
7.4.60.0000.02216.49
7.4.50.0000.01316.54
7.4.40.0080.00816.27
7.4.30.0110.00716.60
7.4.10.0070.01114.62
7.4.00.0070.01015.03
7.3.330.0030.00613.15
7.3.320.0050.00013.11
7.3.310.0030.00516.08
7.3.300.0070.00016.30
7.3.290.0070.00716.31
7.3.280.0100.00816.28
7.3.270.0110.00717.40
7.3.260.0110.00616.36
7.3.250.0130.00616.50
7.3.240.0100.00716.40
7.3.230.0080.00816.39
7.3.210.0120.00816.58
7.3.200.0090.01216.20
7.3.190.0030.01316.34
7.3.180.0090.01316.61
7.3.170.0060.01216.58
7.3.160.0000.01616.44
7.3.130.0000.01914.59
7.3.120.0090.00814.59
7.3.110.0090.00814.75
7.3.100.0070.00614.69
7.3.90.0030.01114.95
7.3.80.0050.01114.66
7.3.70.0070.00514.89
7.3.60.0070.00714.73
7.3.50.0020.01214.71
7.3.40.0050.00814.83
7.3.30.0100.00214.79
7.3.20.0080.00716.70
7.3.10.0090.00716.39
7.3.00.0090.00516.47
7.2.330.0140.00416.45
7.2.320.0100.00616.54
7.2.310.0100.00716.56
7.2.300.0060.01016.62
7.2.290.0150.00316.55
7.2.260.0070.01114.96
7.2.250.0070.01115.07
7.2.240.0100.00514.96
7.2.230.0100.00715.24
7.2.220.0030.01214.92
7.2.210.0060.01114.99
7.2.200.0090.00514.94
7.2.190.0070.00714.80
7.2.180.0060.00615.17
7.2.170.0060.00814.72
7.2.160.0030.01414.97
7.2.150.0070.00716.92
7.2.140.0040.01116.84
7.2.130.0090.00616.65
7.2.120.0030.01216.34
7.2.110.0050.01116.80
7.2.100.0110.00616.37
7.2.90.0100.00716.70
7.2.80.0050.01016.94
7.2.70.0080.00716.58
7.2.60.0100.00516.75
7.2.50.0070.00816.95
7.2.40.0030.01016.80
7.2.30.0060.01016.66
7.2.20.0080.00716.56
7.2.10.0110.00516.64
7.2.00.0080.00816.93
7.1.330.0020.01115.54
7.1.320.0100.00215.70
7.1.310.0070.00715.71
7.1.300.0090.00415.80
7.1.290.0100.00315.71
7.1.280.0060.00715.79
7.1.270.0030.00615.54
7.1.260.0060.00815.79
7.1.250.0050.00915.38
7.1.240.0070.00715.95
7.1.230.0060.00315.70
7.1.220.0080.00615.51
7.1.210.0000.01715.52
7.1.200.0090.00415.23
7.1.190.0050.00515.37
7.1.180.0070.00715.76
7.1.170.0090.00615.57
7.1.160.0050.00815.47
7.1.150.0110.00715.67
7.1.140.0030.00915.72
7.1.130.0090.00615.51
7.1.120.0030.01015.45
7.1.110.0140.00015.62
7.1.100.0040.01115.62
7.1.90.0100.00315.59
7.1.80.0110.00415.71
7.1.70.0020.01116.33
7.1.60.0020.00917.61
7.1.50.0100.00315.58
7.1.40.0000.01015.36
7.1.30.0000.01015.16
7.1.20.0060.00615.51
7.1.10.0050.00515.70
7.1.00.0090.03818.92
7.0.330.0040.00915.28
7.0.320.0100.00315.13
7.0.310.0030.00615.11
7.0.300.0060.00615.28
7.0.290.0030.01415.33
7.0.280.0080.00415.13
7.0.270.0030.00615.15
7.0.260.0100.00315.23
7.0.250.0100.00315.43
7.0.240.0070.00415.08
7.0.230.0060.00915.13
7.0.220.0030.00615.43
7.0.210.0000.01215.29
7.0.200.0620.00614.79
7.0.190.0090.00614.75
7.0.180.0080.00515.47
7.0.170.0000.01615.50
7.0.160.0090.00315.30
7.0.150.0030.00615.17
7.0.140.0090.00315.20
7.0.130.0030.01015.46
7.0.120.0040.01215.45
7.0.110.0050.01115.46
7.0.100.0060.00615.28
7.0.90.0060.00614.78
7.0.80.0100.00615.16
7.0.70.0120.03217.69
7.0.60.0230.03317.58
7.0.50.0230.03317.80
7.0.40.0190.03416.92
7.0.30.0170.04116.89
7.0.20.0270.03216.96
7.0.10.0250.03016.76
7.0.00.0140.03416.82
5.6.400.0040.01014.52
5.6.390.0040.00814.50
5.6.380.0100.01014.22
5.6.370.0090.00314.23
5.6.360.0030.00614.47
5.6.350.0030.01214.89
5.6.340.0040.01114.19
5.6.330.0000.01313.96
5.6.320.0060.00914.64
5.6.310.0000.01314.71
5.6.300.0070.00713.84
5.6.290.0080.00414.02
5.6.280.0030.03817.78
5.6.270.0100.00614.30
5.6.260.0110.00714.43
5.6.250.0100.00313.98
5.6.240.0100.00614.48
5.6.230.0100.00714.25
5.6.220.0180.03317.40
5.6.210.0200.03017.41
5.6.200.0280.03517.49
5.6.190.0270.02717.51
5.6.180.0240.03817.50
5.6.170.0180.03317.80
5.6.160.0100.03517.43
5.6.150.0130.03017.54
5.6.140.0110.03417.65
5.6.130.0120.03517.77
5.6.120.0160.02917.69
5.6.110.0170.04217.59
5.6.100.0160.03117.50
5.6.90.0120.03517.69
5.6.80.0120.04117.42
5.6.70.0150.04317.35
5.6.60.0120.03417.43
5.6.50.0120.03517.28
5.6.40.0120.03617.37
5.6.30.0100.03417.21
5.6.20.0100.03617.26
5.6.10.0200.03517.17
5.6.00.0100.03517.28
5.5.380.0120.00314.04
5.5.370.0040.01214.48
5.5.360.0170.03617.51
5.5.350.0190.03617.45
5.5.340.0230.04817.58
5.5.330.0150.03517.60
5.5.320.0210.03117.47
5.5.310.0190.03217.69
5.5.300.0120.03217.60
5.5.290.0150.03017.70
5.5.280.0150.03717.46
5.5.270.0140.03117.75
5.5.260.0120.04217.48
5.5.250.0200.02717.29
5.5.240.0180.02917.27
5.5.230.0130.03617.17
5.5.220.0210.03017.34
5.5.210.0210.02317.08
5.5.200.0150.03117.05
5.5.190.0100.03517.03
5.5.180.0100.03717.40
5.5.170.0030.00914.30
5.5.160.0270.03517.22
5.5.150.0250.02817.22
5.5.140.0290.02717.25
5.5.130.0200.03117.13
5.5.120.0150.04317.25
5.5.110.0200.03017.39
5.5.100.0220.03117.12
5.5.90.0290.02716.98
5.5.80.0200.03517.05
5.5.70.0180.03017.25
5.5.60.0080.04217.14
5.5.50.0130.04017.03
5.5.40.0150.02817.23
5.5.30.0090.03517.24
5.5.20.0180.02817.09
5.5.10.0070.03417.11
5.5.00.0150.03917.02

preferences:
79.7 ms | 403 KiB | 5 Q