3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $prop; public function change() { $prop=2; } public function output() { echo $prop; } } class b { public function change() { $this->prop=2; } public function output() { echo $this->prop; } } $objA=new a(); $objB=new b(); $objA->change(); $objA->output(); $objB->change(); $objB->output();

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.0140.00016.63
8.3.50.0190.00816.57
8.3.40.0180.00418.63
8.3.30.0090.00618.88
8.3.20.0040.00418.73
8.3.10.0040.00420.71
8.3.00.0040.00419.26
8.2.180.0130.00416.63
8.2.170.0120.00322.96
8.2.160.0120.00321.20
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00517.75
8.2.110.0060.01221.05
8.2.100.0000.01217.79
8.2.90.0060.00320.90
8.2.80.0040.00418.03
8.2.70.0040.00417.46
8.2.60.0000.00917.93
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00918.14
8.2.20.0000.00717.77
8.2.10.0040.00417.81
8.2.00.0050.00517.84
8.1.280.0210.00025.92
8.1.270.0070.00724.66
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0070.00322.48
8.1.230.0040.00720.97
8.1.220.0080.00017.76
8.1.210.0030.00618.85
8.1.200.0060.00317.22
8.1.190.0000.00817.54
8.1.180.0040.00418.10
8.1.170.0030.00618.82
8.1.160.0030.00618.73
8.1.150.0000.00818.65
8.1.140.0070.00017.28
8.1.130.0030.00317.71
8.1.120.0030.00317.46
8.1.110.0040.00417.29
8.1.100.0000.00717.29
8.1.90.0070.00317.23
8.1.80.0000.00717.29
8.1.70.0030.00317.31
8.1.60.0000.00817.58
8.1.50.0000.00717.54
8.1.40.0000.00717.53
8.1.30.0020.00517.55
8.1.20.0000.00717.61
8.1.10.0040.00417.46
8.1.00.0040.00417.54
8.0.300.0000.00720.06
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0070.00017.27
8.0.260.0030.00316.82
8.0.250.0040.00417.04
8.0.240.0000.00717.04
8.0.230.0070.00016.91
8.0.220.0030.00316.97
8.0.210.0000.00816.81
8.0.200.0000.00616.98
8.0.190.0070.00016.88
8.0.180.0000.00716.95
8.0.170.0060.00316.84
8.0.160.0080.00016.79
8.0.150.0040.00416.89
8.0.140.0040.00416.93
8.0.130.0000.00513.30
8.0.120.0040.00416.84
8.0.110.0050.00216.74
8.0.100.0070.00016.93
8.0.90.0030.00616.93
8.0.80.0090.00616.85
8.0.70.0080.00016.84
8.0.60.0040.00416.81
8.0.50.0040.00416.86
8.0.30.0050.01516.97
8.0.20.0100.00816.90
8.0.10.0040.00417.00
8.0.00.0070.01316.81
7.4.330.0000.00513.01
7.4.320.0060.00016.60
7.4.300.0060.00016.44
7.4.290.0050.00216.52
7.4.280.0030.00616.51
7.4.270.0060.00016.52
7.4.260.0050.00013.32
7.4.250.0030.00616.61
7.4.240.0070.00016.63
7.4.230.0000.00716.65
7.4.220.0120.01216.48
7.4.210.0090.00816.52
7.4.200.0030.00316.35
7.4.190.0040.00416.33
7.4.160.0130.01016.79
7.4.150.0090.01216.45
7.4.140.0120.00816.58
7.4.130.0060.01016.48
7.4.120.0030.01316.44
7.4.110.0100.00716.49
7.4.100.0140.00716.54
7.4.90.0140.00316.67
7.4.80.0140.00419.39
7.4.70.0040.01316.75
7.4.60.0210.00316.54
7.4.50.0030.00316.46
7.4.40.0090.00616.35
7.4.30.0140.00316.54
7.4.00.0040.01114.87
7.3.330.0030.00313.24
7.3.320.0000.00513.20
7.3.310.0030.00316.33
7.3.300.0000.00716.34
7.3.290.0090.00616.41
7.3.280.0080.00816.38
7.3.270.0120.00616.44
7.3.260.0160.00616.64
7.3.250.0090.00816.56
7.3.240.0100.01316.36
7.3.230.0120.00616.29
7.3.210.0070.01016.41
7.3.200.0040.01416.69
7.3.190.0080.00916.51
7.3.180.0090.00616.22
7.3.170.0100.00616.52
7.3.160.0160.00416.49
7.3.120.0030.00914.94
7.2.330.0160.01516.43
7.2.320.0140.01016.34
7.2.310.0060.01216.77
7.2.300.0080.01216.70
7.2.290.0100.01316.44
7.2.60.0040.00816.93
7.2.00.0060.00919.59
7.1.200.0110.00315.62
7.1.100.0030.01017.82
7.1.70.0130.00017.24
7.1.60.0130.01019.40
7.1.50.0000.01216.83
7.1.00.0100.07022.54
7.0.200.0260.00714.66
7.0.140.0070.07022.09
7.0.120.0130.06322.04
7.0.60.0070.05019.98
7.0.50.0030.08017.83
7.0.40.0070.04020.14
7.0.30.0230.03720.25
7.0.20.0200.05320.15
7.0.10.0030.08320.05
7.0.00.0100.03720.14
5.6.280.0030.07321.02
5.6.210.0030.04020.52
5.6.200.0200.07018.20
5.6.190.0070.05320.48
5.6.180.0270.07720.46
5.6.170.0200.05320.56
5.6.160.0000.09020.39
5.6.150.0070.08018.19
5.6.140.0070.03718.14
5.6.130.0000.08018.18
5.6.120.0070.05720.98
5.6.110.0070.06721.13
5.6.100.0170.07020.98
5.6.90.0270.07321.11
5.6.80.0000.05720.40
5.6.70.2870.03720.52
5.5.350.0100.08020.45
5.5.340.0000.08318.04
5.5.330.0170.07320.35
5.5.320.0000.07720.28
5.5.310.0270.06320.30
5.5.300.0070.04718.01
5.5.290.0070.03718.08
5.5.280.0000.04720.96
5.5.270.0100.04020.80
5.5.260.0000.04720.75
5.5.250.0100.03720.48
5.5.240.0270.05320.07
5.4.450.0000.07719.57
5.4.440.0030.04719.57
5.4.430.0100.05319.17
5.4.420.0170.07019.33
5.4.410.0100.07319.14
5.4.400.0070.06318.93
5.4.390.0070.07318.87
5.4.380.0000.04719.20
5.4.370.0070.04719.15
5.4.360.0130.07019.15
5.4.350.0000.07018.86
5.4.340.0000.06318.88
5.4.320.0100.07318.88
5.4.310.0170.06719.24
5.4.300.0070.03319.07
5.4.290.0030.03719.24
5.4.280.0000.05019.20
5.4.270.0000.04019.14
5.4.260.0000.04019.18
5.4.250.0000.04019.04
5.4.240.0100.03018.96
5.4.230.0030.03719.11
5.4.220.0030.04719.25
5.4.210.0000.04019.02
5.4.200.0000.04019.20
5.4.190.0000.04018.99
5.4.180.0030.03719.14
5.4.170.0030.03718.97
5.4.160.0100.03318.98
5.4.150.0070.03318.90
5.4.140.0000.03716.32
5.4.130.0100.02716.37
5.4.120.0070.03316.34
5.4.110.0000.03716.42
5.4.100.0030.03316.52
5.4.90.0070.03016.43
5.4.80.0000.03716.30
5.4.70.0000.03716.71
5.4.60.0000.03716.45
5.4.50.0030.03316.26
5.4.40.0100.02716.38
5.4.30.0030.03716.36
5.4.20.0070.03316.27
5.4.10.0100.03316.37
5.4.00.0070.05715.80
5.3.290.0030.05014.81
5.3.280.0130.02714.52
5.3.270.0030.04014.66
5.3.260.0070.03314.65
5.3.250.0000.04014.76
5.3.240.0070.06714.66
5.3.230.0030.03714.64
5.3.220.0030.03714.57
5.3.210.0070.03314.64
5.3.200.0000.03714.59
5.3.190.0030.03714.71
5.3.180.0070.03314.57
5.3.170.0070.03314.71
5.3.160.0100.03014.59
5.3.150.0070.04314.60
5.3.140.0070.03314.57
5.3.130.0070.05314.55
5.3.120.0100.06714.60
5.3.110.0100.04314.58
5.3.100.0070.03714.04
5.3.90.0100.03014.18
5.3.80.0070.07314.05
5.3.70.0100.07014.17
5.3.60.0070.06714.03
5.3.50.0100.04014.01
5.3.40.0130.06013.96
5.3.30.0130.06713.92
5.3.20.0170.06013.86
5.3.10.0100.03313.65
5.3.00.0030.06313.68
5.2.170.0070.06711.21
5.2.160.0070.02711.05
5.2.150.0100.06311.21
5.2.140.0000.06011.19
5.2.130.0000.03311.12
5.2.120.0070.06311.12
5.2.110.0130.04011.12
5.2.100.0030.03711.26
5.2.90.0070.06011.11
5.2.80.0000.05311.15
5.2.70.0030.05710.99
5.2.60.0000.04311.05
5.2.50.0070.04010.97
5.2.40.0070.03011.16
5.2.30.0000.06710.95
5.2.20.0070.03710.93
5.2.10.0030.06010.92
5.2.00.0030.03010.79
5.1.60.0030.0409.91
5.1.50.0000.03310.07
5.1.40.0030.0239.89
5.1.30.0000.05010.34
5.1.20.0070.05310.40
5.1.10.0070.04710.07
5.1.00.0070.03310.07
5.0.50.0030.0238.71
5.0.40.0100.0408.48
5.0.30.0030.0438.19
5.0.20.0000.0278.17
5.0.10.0030.0238.17
5.0.00.0000.0438.17
4.4.90.0030.0138.02
4.4.80.0070.0138.02
4.4.70.0030.0178.02
4.4.60.0000.0308.02
4.4.50.0000.0308.02
4.4.40.0000.0238.02
4.4.30.0000.0178.02
4.4.20.0030.0378.02
4.4.10.0030.0208.02
4.4.00.0070.0508.02
4.3.110.0030.0178.02
4.3.100.0000.0338.02
4.3.90.0030.0208.02
4.3.80.0130.0408.02
4.3.70.0030.0238.02
4.3.60.0030.0378.02
4.3.50.0000.0338.02
4.3.40.0070.0478.02
4.3.30.0000.0338.02
4.3.20.0000.0238.02
4.3.10.0030.0178.02
4.3.00.0000.0338.02

preferences:
42.08 ms | 401 KiB | 5 Q