3v4l.org

run code in 300+ PHP versions simultaneously
<?php class t{ public $tom = "tom"; } $a = new t; $b = new t; $a->tom = "THomas"; echo $a->tom;

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.40.0140.00718.85
8.3.30.0040.01818.68
8.3.20.0000.00818.65
8.3.10.0080.00020.44
8.3.00.0000.00817.37
8.2.170.0110.00422.96
8.2.160.0160.00022.27
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00019.95
8.2.110.0090.00021.18
8.2.100.0090.00317.78
8.2.90.0050.00519.25
8.2.80.0040.00418.04
8.2.70.0030.00517.63
8.2.60.0050.00317.90
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00718.05
8.2.20.0080.00017.52
8.2.10.0040.00417.55
8.2.00.0000.00717.62
8.1.270.0060.01224.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.74
8.1.230.0050.00520.97
8.1.220.0000.00817.74
8.1.210.0000.00818.86
8.1.200.0000.00917.23
8.1.190.0050.00217.40
8.1.180.0050.00318.10
8.1.170.0060.00318.84
8.1.160.0070.00018.80
8.1.150.0040.00418.53
8.1.140.0000.00717.39
8.1.130.0000.00717.76
8.1.120.0000.00817.45
8.1.110.0050.00517.43
8.1.100.0070.00017.41
8.1.90.0040.00417.33
8.1.80.0030.00517.39
8.1.70.0030.00317.29
8.1.60.0030.00617.41
8.1.50.0040.00417.48
8.1.40.0000.00717.34
8.1.30.0050.00317.57
8.1.20.0030.00517.50
8.1.10.0080.00017.57
8.1.00.0000.00717.41
8.0.300.0000.00719.93
8.0.290.0030.00616.75
8.0.280.0000.00718.34
8.0.270.0050.00317.32
8.0.260.0040.00418.54
8.0.250.0090.00016.89
8.0.240.0000.01016.93
8.0.230.0040.00416.88
8.0.220.0000.00616.69
8.0.210.0030.00316.84
8.0.200.0000.00716.95
8.0.190.0040.00416.89
8.0.180.0040.00416.85
8.0.170.0000.00816.91
8.0.160.0040.00416.80
8.0.150.0060.00316.66
8.0.140.0040.00516.81
8.0.130.0000.00513.28
8.0.120.0040.00416.82
8.0.110.0070.00016.71
8.0.100.0080.00016.78
8.0.90.0050.00316.69
8.0.80.0030.01116.82
8.0.70.0050.00216.67
8.0.60.0000.00716.83
8.0.50.0000.00816.73
8.0.30.0100.00917.08
8.0.20.0130.00617.12
8.0.10.0040.00416.83
8.0.00.0070.01416.71
7.4.330.0020.00214.72
7.4.320.0060.00016.47
7.4.300.0060.00016.45
7.4.290.0050.00216.45
7.4.280.0030.00516.43
7.4.270.0070.00016.35
7.4.260.0030.00313.13
7.4.250.0060.00316.52
7.4.240.0000.00716.46
7.4.230.0070.00016.45
7.4.220.0150.00316.33
7.4.210.0100.00916.50
7.4.200.0070.00016.28
7.4.190.0030.00316.62
7.4.160.0150.00016.36
7.4.150.0130.00317.07
7.4.140.0110.00817.25
7.4.130.0120.00516.55
7.4.120.0120.00616.41
7.4.110.0080.00816.39
7.4.100.0100.00716.52
7.4.90.0090.00916.40
7.4.80.0070.01318.80
7.4.70.0100.01016.51
7.4.60.0060.00916.43
7.4.50.0030.00616.19
7.4.40.0130.00322.27
7.4.30.0160.00016.59
7.4.00.0060.00615.09
7.3.330.0060.00013.23
7.3.320.0050.00013.06
7.3.310.0030.00316.08
7.3.300.0030.00316.28
7.3.290.0100.00416.22
7.3.280.0070.00816.29
7.3.270.0060.01317.07
7.3.260.0080.01218.24
7.3.250.0070.01416.27
7.3.240.0090.00716.54
7.3.230.0090.00616.43
7.3.210.0120.00616.18
7.3.200.0000.01819.39
7.3.190.0150.00416.57
7.3.180.0120.00416.09
7.3.170.0060.01016.27
7.3.160.0120.00316.30
7.3.120.0120.00314.74
7.2.330.0110.00616.80
7.2.320.0200.00316.58
7.2.310.0060.01716.64
7.2.300.0120.00616.56
7.2.290.0100.00716.65
7.2.00.0060.00619.52
7.1.200.0040.01115.80
7.1.100.0030.00917.98
7.1.70.0000.00717.13
7.1.60.0090.01519.40
7.1.50.0170.01734.44
7.1.00.0030.07322.48
7.0.200.0030.00516.71
7.0.140.0000.07322.10
7.0.60.0000.08720.01
7.0.50.0030.09017.88
7.0.40.0070.05717.72
7.0.30.0100.08017.74
7.0.20.0000.07717.72
7.0.10.0000.04717.71
7.0.00.0100.07317.74
5.6.280.0070.06720.99
5.6.210.0170.07720.72
5.6.200.0070.08318.16
5.6.190.0030.05018.22
5.6.180.0030.04318.27
5.6.170.0030.08018.15
5.6.160.0030.05018.18
5.6.150.0000.07718.19
5.6.140.0030.04318.19
5.6.130.0130.07718.21
5.6.120.0130.07718.19
5.6.110.0000.07018.28
5.6.100.0130.07718.17
5.6.90.0070.08318.14
5.6.80.0070.06717.67
5.6.70.0100.04017.56
5.6.60.0030.08017.52
5.6.50.0070.06717.54
5.6.40.0000.04317.59
5.6.30.0070.04717.59
5.6.20.0070.05017.50
5.6.10.0030.05717.53
5.6.00.0030.06017.53
5.5.350.0300.07320.40
5.5.340.0030.08318.07
5.5.330.0100.07718.09
5.5.320.0100.08318.08
5.5.310.0070.08018.03
5.5.300.0100.07718.03
5.5.290.0070.07717.99
5.5.280.0030.08318.03
5.5.270.0100.07017.93
5.5.260.0100.08017.98
5.5.250.0070.05317.83
5.5.240.0030.04017.38
5.5.230.0100.03717.42
5.5.220.0130.03717.40
5.5.210.0100.07717.35
5.5.200.0070.03717.32
5.5.190.0130.05317.36
5.5.180.0200.04717.29
5.5.160.0030.07717.27
5.5.150.0100.07717.43
5.5.140.0070.04017.33
5.5.130.0130.03717.41
5.5.120.0070.03317.43
5.5.110.0100.07317.32
5.5.100.0100.07317.29
5.5.90.0030.05317.17
5.5.80.0070.07317.33
5.5.70.0100.07317.18
5.5.60.0170.05317.23
5.5.50.0130.07317.20
5.5.40.0030.03717.22
5.5.30.0030.05717.23
5.5.20.0030.07717.19
5.5.10.0070.07717.18
5.5.00.0100.05317.21
5.4.450.0000.09019.28
5.4.440.0070.07719.29
5.4.430.0070.06719.27
5.4.420.0030.08719.45
5.4.410.0130.06319.24
5.4.400.0000.05319.22
5.4.390.0100.07319.10
5.4.380.0030.08019.03
5.4.370.0030.06718.98
5.4.360.0000.08719.03
5.4.350.0070.04319.04
5.4.340.0130.04319.05
5.4.320.0000.06019.12
5.4.310.0070.05018.95
5.4.300.0030.04019.26
5.4.290.0030.04018.90
5.4.280.0030.04019.09
5.4.270.0030.03719.16
5.4.260.0070.07019.11
5.4.250.0030.08319.27
5.4.240.0100.04319.09
5.4.230.0030.04318.94
5.4.220.0030.08019.11
5.4.210.0130.07019.04
5.4.200.0030.05019.12
5.4.190.0070.03719.08
5.4.180.0070.06718.99
5.4.170.0100.04318.94
5.4.160.0070.05019.25
5.4.150.0070.07718.93
5.4.140.0030.05316.39
5.4.130.0030.03716.36
5.4.120.0000.04016.23
5.4.110.0030.04316.44
5.4.100.0030.03716.40
5.4.90.0000.06716.31
5.4.80.0030.05716.21
5.4.70.0070.04016.30
5.4.60.0030.06716.37
5.4.50.0070.07316.43
5.4.40.0070.03716.46
5.4.30.0070.04016.40
5.4.20.0100.03316.44
5.4.10.0130.06716.20
5.4.00.0100.06315.84
5.3.290.0170.06014.69
5.3.280.0100.07014.64
5.3.270.0070.08014.61
5.3.260.0100.07314.81
5.3.250.0070.07314.66
5.3.240.0030.06014.55
5.3.230.0070.05714.55
5.3.220.0030.04014.58
5.3.210.0070.05714.66
5.3.200.0070.07014.66
5.3.190.0070.03714.77
5.3.180.0030.05314.62
5.3.170.0070.04714.41
5.3.160.0100.07714.55
5.3.150.0070.07314.59
5.3.140.0030.05014.58
5.3.130.0070.04014.57
5.3.120.0000.05314.49
5.3.110.0100.07314.75
5.3.100.0130.06714.07
5.3.90.0130.04014.03
5.3.80.0070.04713.89
5.3.70.0000.04313.89
5.3.60.0030.04313.84
5.3.50.0070.05714.01
5.3.40.0030.05013.93
5.3.30.0070.04713.95
5.3.20.0070.05313.73
5.3.10.0070.05313.56
5.3.00.0070.05313.52
5.2.170.0030.03011.12
5.2.160.0030.06311.21
5.2.150.0030.07011.18
5.2.140.0030.04311.15
5.2.130.0030.04710.95
5.2.120.0030.06011.10
5.2.110.0070.04711.14
5.2.100.0100.02311.05
5.2.90.0070.05710.99
5.2.80.0030.04311.09
5.2.70.0130.05311.12
5.2.60.0000.05310.93
5.2.50.0070.05311.08
5.2.40.0030.06311.04
5.2.30.0030.06310.92
5.2.20.0070.06011.16
5.2.10.0030.04010.95
5.2.00.0000.04010.77
5.1.60.0030.03310.01
5.1.50.0000.05710.05
5.1.40.0100.04310.18
5.1.30.0070.04010.35
5.1.20.0100.04710.38
5.1.10.0130.04710.13
5.1.00.0070.05310.27
5.0.50.0100.04010.01
5.0.40.0100.03710.01
5.0.30.0030.05710.01
5.0.20.0070.04310.01
5.0.10.0030.02710.01
5.0.00.0070.06010.01
4.4.90.0030.02710.01
4.4.80.0030.02010.01
4.4.70.0030.02010.01
4.4.60.0030.02310.01
4.4.50.0000.03710.01
4.4.40.0030.05310.01
4.4.30.0070.03010.01
4.4.20.0000.04010.01
4.4.10.0070.03010.01
4.4.00.0030.05310.01
4.3.110.0030.03710.01
4.3.100.0030.01710.01
4.3.90.0000.02710.01
4.3.80.0000.05710.01
4.3.70.0030.03310.01
4.3.60.0030.02710.01
4.3.50.0000.02010.01
4.3.40.0000.05710.01
4.3.30.0000.01710.01
4.3.20.0000.03310.01
4.3.10.0000.02710.01
4.3.00.0000.03710.01

preferences:
64.47 ms | 400 KiB | 5 Q