3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "this is \n text"; $b = "this is ☭ text"; echo mb_strpos($a, "text", 0, "UTF-8"); echo mb_strpos($b, "text", 0, "UTF-8");

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.0100.00716.50
8.3.50.0110.00718.05
8.3.40.0120.00618.46
8.3.30.0070.00718.43
8.3.20.0040.00420.29
8.3.10.0080.00023.55
8.3.00.0040.00419.79
8.2.180.0120.00318.04
8.2.170.0070.01422.96
8.2.160.0140.00019.09
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00720.98
8.2.120.0030.00326.35
8.2.110.0070.00320.57
8.2.100.0080.00417.58
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0080.00022.23
8.2.30.0080.00019.11
8.2.20.0000.00718.05
8.2.10.0000.00817.88
8.2.00.0000.00817.86
8.1.280.0100.00725.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.91
8.1.230.0070.00419.22
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0050.00318.58
8.1.160.0000.00818.97
8.1.150.0000.00718.74
8.1.140.0040.00419.42
8.1.130.0070.00018.73
8.1.120.0080.00017.46
8.1.110.0040.00417.29
8.1.100.0040.00417.39
8.1.90.0030.00717.47
8.1.80.0030.00317.28
8.1.70.0040.00417.28
8.1.60.0040.00417.46
8.1.50.0050.00317.41
8.1.40.0070.00317.37
8.1.30.0000.00817.57
8.1.20.0030.00517.54
8.1.10.0040.00417.58
8.1.00.0020.00517.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0000.00717.36
8.0.260.0030.00318.85
8.0.250.0000.00717.02
8.0.240.0040.00416.90
8.0.230.0030.00316.94
8.0.220.0030.00516.86
8.0.210.0050.00216.90
8.0.200.0030.00316.86
8.0.190.0000.00816.81
8.0.180.0000.00716.80
8.0.170.0030.00316.88
8.0.160.0040.00416.92
8.0.150.0000.00716.73
8.0.140.0040.00416.84
8.0.130.0030.00313.31
8.0.120.0000.00716.75
8.0.110.0000.00816.93
8.0.100.0030.00516.84
8.0.90.0070.00017.00
8.0.80.0060.01016.89
8.0.70.0050.00216.88
8.0.60.0070.00016.86
8.0.50.0000.00716.76
8.0.30.0100.00717.00
8.0.20.0110.01117.40
8.0.10.0040.00416.99
8.0.00.0170.00416.73
7.4.330.0000.00515.55
7.4.320.0030.00316.56
7.4.300.0000.00616.45
7.4.290.0040.00416.44
7.4.280.0060.00316.39
7.4.270.0030.00316.51
7.4.260.0050.00316.46
7.4.250.0050.00216.40
7.4.240.0040.00416.36
7.4.230.0000.00716.63
7.4.220.0110.00716.59
7.4.210.0060.00916.62
7.4.200.0040.00416.32
7.4.160.0090.00716.44
7.4.150.0090.01417.40
7.4.140.0080.00917.86
7.4.130.0090.00916.55
7.4.120.0100.01216.54
7.4.110.0100.01316.39
7.4.100.0120.00916.50
7.4.90.0120.00616.33
7.4.80.0030.01319.39
7.4.70.0090.00616.30
7.4.60.0000.01616.54
7.4.50.0070.00716.55
7.4.40.0060.01016.21
7.4.30.0110.01116.50
7.4.00.0040.01414.75
7.3.330.0020.00212.95
7.3.320.0000.00612.97
7.3.310.0060.00016.02
7.3.300.0030.00316.17
7.3.290.0020.01116.14
7.3.280.0050.01116.13
7.3.270.0100.01017.40
7.3.260.0100.02316.36
7.3.250.0110.00816.42
7.3.240.0070.01016.24
7.3.230.0030.02016.49
7.3.210.0110.00716.50
7.3.200.0090.00916.19
7.3.190.0060.01016.43
7.3.180.0080.00816.36
7.3.170.0090.00616.25
7.3.160.0030.01316.13
7.2.330.0040.01316.43
7.2.320.0170.00416.32
7.2.310.0070.01016.65
7.2.300.0060.01016.41
7.2.290.0030.01616.69
7.2.60.0000.00716.62
7.2.50.0090.00616.30
7.1.200.0110.00315.81
7.1.70.0040.01916.81
7.1.60.0310.02135.08
7.1.50.0260.02334.77
7.1.40.0330.01334.14
7.1.30.0320.00834.56
7.1.20.0320.01234.60
7.1.10.0080.01416.76
7.1.00.0100.01216.77
7.0.200.0060.01616.75
7.0.190.0040.01516.72
7.0.180.0080.01516.14
7.0.170.0140.01116.09
7.0.160.0110.01316.09
7.0.150.0090.01516.21
7.0.140.0090.01216.40
7.0.130.0010.00116.59
7.0.120.0060.01316.34
7.0.110.0090.01216.28
7.0.100.0000.01816.29
7.0.90.0050.01716.02
7.0.80.0060.01016.21
7.0.70.0090.01016.30
7.0.60.0140.00616.21
7.0.50.0170.00316.29
7.0.40.0070.01016.63
7.0.30.0080.00916.63
7.0.20.0070.01216.33
7.0.10.0150.00516.41
7.0.00.0060.01216.40

preferences:
55.12 ms | 401 KiB | 5 Q