3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo{ $t = 'テキスト'; echo strlen($t); echo strlen($t); if(true){ function strlen($t){return mb_strlen($t);} } echo strlen($t); echo strlen($t); }

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.130.0070.00417.78
8.4.120.0070.00224.10
8.4.110.0120.00722.25
8.4.100.0150.00617.49
8.4.90.0120.00617.58
8.4.80.0050.00317.75
8.4.70.0040.00419.07
8.4.60.0120.01018.65
8.4.50.0030.00820.16
8.4.40.0090.00917.65
8.4.30.0140.00717.80
8.4.20.0110.00019.38
8.4.10.0090.00017.77
8.3.260.0110.00716.54
8.3.250.0040.00518.82
8.3.240.0070.01117.13
8.3.230.0120.00716.42
8.3.220.0110.00517.19
8.3.210.0070.00818.46
8.3.200.0070.00116.57
8.3.190.0070.00117.00
8.3.180.0150.00319.05
8.3.170.0060.01218.96
8.3.160.0120.00617.36
8.3.150.0030.00716.62
8.3.140.0080.00817.35
8.3.130.0090.00018.50
8.3.120.0000.00918.88
8.3.110.0000.00920.94
8.3.100.0090.00624.06
8.3.90.0180.00026.77
8.3.80.0070.00316.49
8.3.70.0070.00716.63
8.3.60.0140.00316.50
8.3.50.0070.00816.43
8.3.40.0100.00718.53
8.3.30.0110.00418.70
8.3.20.0070.00021.81
8.3.10.0040.00423.47
8.3.00.0060.00319.56
8.2.290.0110.00820.45
8.2.280.0140.00618.26
8.2.270.0060.01216.54
8.2.260.0110.00716.43
8.2.250.0110.00716.79
8.2.240.0030.01216.93
8.2.230.0090.00022.58
8.2.220.0000.01037.54
8.2.210.0040.01126.77
8.2.200.0060.00318.29
8.2.190.0120.00316.58
8.2.180.0110.01125.92
8.2.170.0140.00419.09
8.2.160.0090.00621.06
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0000.00820.56
8.2.110.0000.01022.16
8.2.100.0120.00017.97
8.2.90.0060.00317.84
8.2.80.0040.00422.17
8.2.70.0050.00317.63
8.2.60.0060.00317.63
8.2.50.0000.00817.63
8.2.40.0070.00022.26
8.2.30.0040.00419.31
8.2.20.0000.01018.12
8.2.10.0030.00617.67
8.2.00.0040.00417.97
8.1.330.0120.00721.89
8.1.320.0130.00718.00
8.1.310.0110.00716.18
8.1.300.0000.00816.33
8.1.290.0070.00330.84
8.1.280.0120.00925.92
8.1.270.0030.00623.77
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00922.06
8.1.230.0060.00622.11
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0040.00418.65
8.1.160.0050.00218.91
8.1.150.0030.00618.92
8.1.140.0000.00717.74
8.1.130.0040.00420.30
8.1.120.0040.00417.37
8.1.110.0000.00817.35
8.1.100.0000.00817.44
8.1.90.0030.00517.35
8.1.80.0040.00417.34
8.1.70.0040.00417.47
8.1.60.0000.00917.69
8.1.50.0050.00317.50
8.1.40.0030.00517.46
8.1.30.0050.00217.62
8.1.20.0000.00917.69
8.1.10.0030.00517.58
8.1.00.0050.00217.55
8.0.300.0000.00719.98
8.0.290.0000.00816.88
8.0.280.0000.00718.50
8.0.270.0070.00017.21
8.0.260.0030.00316.90
8.0.250.0030.00316.99
8.0.240.0000.00816.94
8.0.230.0040.00417.09
8.0.220.0000.00616.99
8.0.210.0050.00216.93
8.0.200.0000.00817.14
8.0.190.0090.00016.97
8.0.180.0100.00017.05
8.0.170.0030.00617.05
8.0.160.0040.00417.04
8.0.150.0040.00416.94
8.0.140.0030.00417.01
8.0.130.0000.00513.48
8.0.120.0000.00716.97
8.0.110.0040.00417.00
8.0.100.0040.00416.92
8.0.90.0040.00416.80
8.0.80.0100.01016.91
8.0.70.0070.00017.02
8.0.60.0040.00416.88
8.0.50.0000.00716.79
8.0.30.0130.00417.12
8.0.20.0120.00717.40
8.0.10.0070.00017.11
8.0.00.0100.00916.74
7.4.330.0060.00015.55
7.4.320.0030.00316.46
7.4.300.0060.00016.51
7.4.290.0070.00016.51
7.4.280.0040.00416.35
7.4.270.0050.00316.50
7.4.260.0040.00416.63
7.4.250.0040.00416.46
7.4.240.0080.00016.65
7.4.230.0030.00316.67
7.4.220.0040.00416.70
7.4.210.0100.00516.54
7.4.200.0000.00816.61
7.4.160.0130.00716.56
7.4.140.0090.00917.86
7.4.130.0130.01316.71
7.4.120.0060.01316.45
7.4.110.0140.00416.40
7.4.100.0140.00716.60
7.4.90.0070.01116.67
7.4.80.0120.00919.39
7.4.70.0060.01616.61
7.4.60.0100.00716.63
7.4.50.0060.00616.47
7.4.40.0090.01316.55
7.4.00.0080.00815.10
7.3.330.0000.00513.28
7.3.320.0060.00013.24
7.3.310.0040.00416.35
7.3.300.0030.00316.22
7.3.290.0030.00316.22
7.3.280.0120.00616.28
7.3.260.0100.01216.45
7.3.240.0100.00816.39
7.3.230.0060.01216.32
7.3.210.0130.00316.32
7.3.200.0060.00916.32
7.3.190.0060.01016.28
7.3.180.0050.01016.39
7.3.170.0130.00316.34
7.3.160.0130.00716.28
7.3.120.0070.01114.90
7.3.110.0070.01014.95
7.3.100.0070.00315.03
7.3.90.0040.00414.38
7.3.80.0040.00714.63
7.3.70.0160.00314.62
7.3.60.0040.00714.90
7.3.50.0040.01114.95
7.3.40.0040.01114.71
7.3.30.0060.00914.54
7.3.20.0030.00716.62
7.3.10.0000.01016.36
7.3.00.0030.01316.68
7.2.330.0160.00616.37
7.2.320.0100.01316.37
7.2.310.0090.00616.56
7.2.300.0110.00816.55
7.2.290.0110.00716.54
7.2.250.0030.01415.16
7.2.240.0000.01914.78
7.2.230.0090.00914.77
7.2.220.0000.01215.08
7.2.210.0030.01015.11
7.2.200.0030.01715.04
7.2.190.0040.00714.90
7.2.180.0000.00914.67
7.2.170.0030.01014.95
7.2.60.0030.01216.67
7.2.30.0130.01417.79
7.2.20.0150.01317.91
7.2.10.0140.01218.03
7.2.00.0090.01517.89
7.1.330.0070.00715.55
7.1.320.0030.00915.79
7.1.310.0060.01215.68
7.1.300.0000.01515.68
7.1.290.0090.00315.68
7.1.280.0060.01015.60
7.1.270.0030.00915.77
7.1.260.0070.01015.77
7.1.200.0060.00615.56
7.1.150.0120.00717.08
7.1.140.0260.01216.94
7.1.130.0130.00916.22
7.1.120.0160.00916.73
7.1.110.0110.01316.29
7.1.100.0110.01215.70
7.1.90.0110.01015.96
7.1.80.0110.01016.02
7.1.70.0090.01215.05
7.1.60.0290.01433.00
7.1.50.0310.01432.75
7.1.40.0950.01832.49
7.1.30.0320.01832.68
7.1.20.0310.01032.80
7.1.10.0100.01014.67
7.1.00.0160.01214.76

preferences:
147.31 ms | 403 KiB | 5 Q