3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UString { private $string = null; public function __construct(string $string) { $this->string = $string; } } echo strlen(new Ustring('Class with __string method !'));

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.0130.01016.75
8.3.50.0030.01016.40
8.3.40.0120.00318.78
8.3.30.0150.00018.75
8.3.20.0050.00320.25
8.3.10.0050.00323.47
8.3.00.0050.00319.68
8.2.180.0120.00318.31
8.2.170.0120.00622.96
8.2.160.0130.00319.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00417.63
8.2.110.0030.00719.30
8.2.100.0110.00019.39
8.2.90.0030.00618.95
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00818.03
8.2.30.0070.00017.87
8.2.20.0040.00417.59
8.2.10.0050.00217.97
8.2.00.0040.00417.96
8.1.280.0080.00625.92
8.1.270.0050.00322.09
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.96
8.1.230.0050.00517.82
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.10
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0060.00318.66
8.1.150.0060.00318.68
8.1.140.0050.00317.31
8.1.130.0030.00317.62
8.1.120.0040.00317.26
8.1.110.0070.00017.34
8.1.100.0040.00417.39
8.1.90.0000.00717.37
8.1.80.0040.00417.39
8.1.70.0000.00817.39
8.1.60.0040.00417.50
8.1.50.0080.00017.55
8.1.40.0050.00517.46
8.1.30.0000.00817.47
8.1.20.0040.00417.66
8.1.10.0040.00417.50
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0040.00418.34
8.0.270.0000.00717.10
8.0.260.0000.00617.25
8.0.250.0000.00716.94
8.0.240.0040.00416.84
8.0.230.0070.00016.84
8.0.220.0070.00016.82
8.0.210.0040.00416.87
8.0.200.0070.00016.83
8.0.190.0040.00416.93
8.0.180.0000.00816.91
8.0.170.0000.00716.84
8.0.160.0000.00716.89
8.0.150.0030.00516.90
8.0.140.0000.00716.76
8.0.130.0070.00013.27
8.0.120.0000.00816.81
8.0.110.0000.00816.80
8.0.100.0000.00716.84
8.0.90.0000.00716.71
8.0.80.0070.00716.88
8.0.70.0040.00416.80
8.0.60.0000.00716.85
8.0.50.0040.00416.78
8.0.30.0120.00617.00
8.0.20.0110.01017.40
8.0.10.0050.00216.79
8.0.00.0120.01016.71
7.4.330.0000.00615.08
7.4.320.0000.00616.45
7.4.300.0030.00316.54
7.4.290.0030.00316.29
7.4.280.0030.00516.38
7.4.270.0070.00016.44
7.4.260.0070.00316.51
7.4.250.0040.00416.47
7.4.240.0000.00716.45
7.4.230.0020.00516.27
7.4.220.0170.00016.42
7.4.210.0060.00916.40
7.4.200.0050.00216.34
7.4.160.0130.00316.46
7.4.150.0060.01017.40
7.4.140.0160.00917.86
7.4.130.0080.00916.50
7.4.120.0100.00716.50
7.4.110.0080.01116.44
7.4.100.0070.01016.36
7.4.90.0030.01516.46
7.4.80.0130.00319.39
7.4.70.0090.00616.73
7.4.60.0090.00616.46
7.4.50.0050.00016.40
7.4.40.0060.01016.46
7.4.30.0120.00616.43
7.4.00.0100.00714.85
7.3.330.0030.00313.23
7.3.320.0000.00613.13
7.3.310.0000.00716.27
7.3.300.0070.00016.30
7.3.290.0110.00816.23
7.3.280.0110.00816.24
7.3.270.0140.00317.40
7.3.260.0090.00916.20
7.3.250.0090.00816.36
7.3.240.0040.01416.37
7.3.230.0080.00816.39
7.3.210.0070.01016.32
7.3.200.0030.01316.41
7.3.190.0060.01116.38
7.3.180.0170.00316.32
7.3.170.0110.00616.28
7.3.160.0150.00916.27
7.3.120.0040.01114.79
7.3.110.0080.00814.57
7.3.100.0030.01314.83
7.3.90.0030.00914.56
7.3.80.0030.00714.51
7.3.70.0120.00314.83
7.3.60.0000.01314.77
7.3.50.0080.00414.81
7.3.40.0100.00314.82
7.3.30.0040.00714.75
7.3.20.0070.00316.46
7.3.10.0030.01016.60
7.3.00.0030.01116.70
7.2.330.0060.01216.59
7.2.320.0070.01016.59
7.2.310.0080.01116.34
7.2.300.0060.00916.21
7.2.290.0100.00616.50
7.2.240.0060.01214.93
7.2.230.0100.00614.53
7.2.220.0030.01215.06
7.2.210.0040.01415.05
7.2.200.0090.00615.11
7.2.190.0070.01114.97
7.2.180.0060.00914.97
7.2.170.0030.01215.06
7.2.160.0060.00915.06
7.2.150.0070.00416.87
7.2.140.0070.01116.86
7.2.130.0040.00916.87
7.2.120.0050.01016.73
7.2.110.0010.01016.93
7.2.100.0090.00616.83
7.2.90.0060.00616.65
7.2.80.0050.00916.79
7.2.70.0070.00316.68
7.2.60.0070.00716.81
7.2.50.0070.00716.89
7.2.40.0090.00316.89
7.2.30.0030.01016.75
7.2.20.0090.00316.73
7.2.10.0000.01116.89
7.2.00.0060.01017.50
7.1.330.0030.00615.75
7.1.320.0030.00915.85
7.1.310.0090.00915.92
7.1.300.0040.01115.41
7.1.290.0030.01415.89
7.1.280.0080.00815.64
7.1.270.0100.00715.61
7.1.260.0050.00515.71
7.1.250.0070.00415.69
7.1.200.0030.01015.50
7.1.100.0040.00718.16
7.1.70.0070.00017.04
7.1.60.0060.01619.27
7.1.50.0130.00716.81
7.1.00.0070.07022.46
7.0.200.0030.00316.87
7.0.60.0030.08719.86
7.0.50.0030.09017.86
7.0.40.0070.06720.20
7.0.30.0270.08020.07
7.0.20.0100.04720.30
7.0.10.0030.08020.33
7.0.00.0100.05720.17
5.6.280.0070.06321.05
5.6.210.0200.07020.56
5.6.200.0100.07718.12
5.6.190.0100.08320.52
5.6.180.3200.03020.61
5.6.170.0230.07720.44
5.6.160.0200.07020.54
5.6.150.0100.03718.18
5.6.140.0100.07718.24
5.6.130.0030.09318.27
5.6.120.0030.08720.98
5.6.110.0100.07721.14
5.6.100.0130.07720.98
5.6.90.0100.06021.08
5.6.80.0030.07720.37
5.6.70.4600.03320.52
5.5.350.0070.07720.49
5.5.340.0130.07717.96
5.5.330.0030.05720.25
5.5.320.0300.06720.24
5.5.310.0400.07320.18
5.5.300.0100.07717.95
5.5.290.0070.04017.94
5.5.280.0100.08020.81
5.5.270.0100.06720.87
5.5.260.0100.08320.84
5.5.250.0030.05320.62
5.5.240.0170.03020.16
5.4.450.0870.05319.57
5.4.440.0770.06019.30
5.4.430.0800.05719.47
5.4.420.0100.06019.50
5.4.410.0570.05719.06
5.4.400.0900.05019.27
5.4.390.0300.07019.14
5.4.380.0170.06319.13
5.4.370.0230.05019.24
5.4.360.0200.06319.22
5.4.350.0200.05318.97
5.4.340.0070.06019.18
5.4.320.0300.06719.29
5.4.310.0830.05719.20
5.4.300.0570.05718.97
5.4.290.0730.05719.23
5.4.280.0800.07019.34
5.4.270.0930.05018.88
5.4.260.0070.06719.25
5.4.250.0230.05019.22
5.4.240.0300.06319.17
5.4.230.0430.05719.28
5.4.220.0230.05719.14
5.4.210.0030.07019.21
5.4.200.0270.05019.28
5.4.190.0230.08319.33
5.4.180.0230.06318.97
5.4.170.0230.05319.14
5.4.160.0230.07018.82
5.4.150.0330.08318.84
5.4.140.0200.05716.48
5.4.130.0230.05316.50
5.4.120.0330.06316.34
5.4.110.0400.05316.58
5.4.100.0170.05716.59
5.4.90.0170.06016.52
5.4.80.0300.05016.49
5.4.70.0270.05316.49
5.4.60.0270.04716.55
5.4.50.0030.04316.53
5.4.40.0100.05016.34
5.4.30.0070.07316.51
5.4.20.0330.06716.37

preferences:
67.51 ms | 400 KiB | 5 Q