3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variableGlobal = 30; Class myClass{ public $classProperty; function __construct(&$globalVar){ $this->classProperty = $globalVar; } function myFunction(){ $accessible = $this->classProperty; } }

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.0070.01016.62
8.3.50.0080.01217.90
8.3.40.0070.01018.67
8.3.30.0030.01018.32
8.3.20.0100.00618.65
8.3.10.0050.00520.25
8.3.00.0090.00019.26
8.2.180.0120.00316.50
8.2.170.0170.00322.96
8.2.160.0120.00318.79
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00418.81
8.2.110.0030.00721.00
8.2.100.0000.01117.72
8.2.90.0000.01019.35
8.2.80.0040.00419.21
8.2.70.0080.00017.50
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0000.00718.08
8.2.20.0030.00717.47
8.2.10.0000.00817.60
8.2.00.0070.00017.49
8.1.280.0070.01325.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0060.00620.46
8.1.230.0120.00020.96
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.30
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0080.00018.82
8.1.150.0050.00318.53
8.1.140.0040.00417.26
8.1.130.0000.00717.88
8.1.120.0030.00517.33
8.1.110.0000.00817.39
8.1.100.0040.00417.38
8.1.90.0000.00717.38
8.1.80.0030.00317.27
8.1.70.0030.00317.34
8.1.60.0030.00617.51
8.1.50.0040.00417.28
8.1.40.0040.00417.43
8.1.30.0030.00517.46
8.1.20.0040.00417.57
8.1.10.0030.00617.42
8.1.00.0040.00417.23
8.0.300.0020.00519.86
8.0.290.0070.00016.62
8.0.280.0030.00318.25
8.0.270.0080.00017.25
8.0.260.0000.00716.74
8.0.250.0000.00716.85
8.0.240.0070.00016.90
8.0.230.0030.00316.86
8.0.220.0070.00016.73
8.0.210.0000.00716.80
8.0.200.0040.00416.86
8.0.190.0000.00716.86
8.0.180.0000.00716.86
8.0.170.0030.00616.67
8.0.160.0000.00816.88
8.0.150.0060.00316.77
8.0.140.0060.00316.68
8.0.130.0000.00513.19
8.0.120.0040.00416.80
8.0.110.0060.00316.86
8.0.100.0070.00016.80
8.0.90.0070.00016.77
8.0.80.0000.01616.87
8.0.70.0000.00716.80
8.0.60.0040.00416.84
8.0.50.0050.00316.67
8.0.30.0100.01017.12
8.0.20.0090.00917.08
8.0.10.0040.00416.97
8.0.00.0090.01016.63
7.4.330.0000.00512.93
7.4.320.0080.00016.55
7.4.300.0030.00316.44
7.4.290.0000.00816.54
7.4.280.0040.00416.52
7.4.270.0030.00316.52
7.4.260.0000.00513.24
7.4.250.0000.00716.36
7.4.240.0000.00716.53
7.4.230.0000.00616.63
7.4.220.0060.01316.53
7.4.210.0100.00716.37
7.4.200.0000.00716.29
7.4.190.0000.00716.34
7.4.160.0160.00016.22
7.4.150.0110.00816.45
7.4.140.0140.00516.30
7.4.130.0100.00716.40
7.4.120.0030.01316.33
7.4.110.0070.01116.43
7.4.100.0080.01316.57
7.4.90.0120.00816.35
7.4.80.0090.00919.39
7.4.70.0150.00316.42
7.4.60.0090.00616.41
7.4.50.0050.00016.50
7.4.40.0090.00616.26
7.4.30.0110.00616.34
7.4.00.0060.00314.66
7.3.330.0000.00613.18
7.3.320.0000.00513.02
7.3.310.0030.00316.20
7.3.300.0040.00416.09
7.3.290.0080.00716.12
7.3.280.0130.00516.16
7.3.270.0070.01416.21
7.3.260.0090.00916.17
7.3.250.0130.00716.28
7.3.240.0110.00716.11
7.3.230.0070.01316.45
7.3.210.0070.01116.13
7.3.200.0110.00716.49
7.3.190.0160.00016.49
7.3.180.0040.01116.38
7.3.170.0080.00816.53
7.3.160.0100.00716.23
7.3.120.0040.00814.61
7.2.330.0100.00716.55
7.2.320.0030.01616.59
7.2.310.0070.01616.44
7.2.300.0100.00716.55
7.2.290.0090.01216.27
7.1.100.0070.00717.54
7.1.70.0000.01016.88
7.1.60.0030.00917.16
7.1.50.0040.01516.81
7.1.00.0000.04022.31
7.0.200.0050.00316.64
7.0.140.0030.07021.93
7.0.120.0070.07322.18
7.0.60.0330.06720.03
7.0.50.0130.07317.86
7.0.40.0100.07020.08
7.0.30.0070.05720.25
7.0.20.0100.08320.25
7.0.10.0170.07720.18
7.0.00.0030.04320.18
5.6.280.0030.07320.93
5.6.210.0070.07320.71
5.6.200.0070.07718.16
5.6.190.0100.07320.47
5.6.180.0000.04720.66
5.6.170.0170.04020.41
5.6.160.0070.04320.50
5.6.150.0070.04020.50
5.6.140.0070.08720.33
5.6.130.0070.06320.52
5.6.120.0070.09020.17
5.6.110.0000.05020.22
5.6.100.0100.08020.31
5.6.90.0100.06020.30
5.6.80.0070.08319.91
5.6.70.0100.03319.87
5.6.60.0070.04019.69
5.6.50.0100.06019.72
5.6.40.0030.09019.76
5.6.30.0070.06319.55
5.6.20.0030.04319.66
5.6.10.0130.06019.85
5.6.00.0000.06019.57
5.5.350.0070.07320.43
5.5.340.0030.04017.95
5.5.330.0070.07720.32
5.5.320.0070.07720.38
5.5.310.0330.04320.27
5.5.300.0130.07720.14
5.5.290.0070.04720.14
5.5.280.0070.08320.12
5.5.270.0030.04720.20
5.5.260.0070.05019.98
5.5.250.0070.09020.10
5.5.240.0070.08719.70
5.5.230.0030.06319.57
5.5.220.0100.07019.67
5.5.210.0100.07719.34
5.5.200.0030.08319.32
5.5.190.0030.04019.32
5.5.180.0000.06319.50
5.5.160.0170.06019.54
5.5.150.0000.08319.52
5.5.140.0100.08319.33
5.5.130.0030.08319.67
5.5.120.0000.06019.55
5.5.110.0070.08319.48
5.5.100.0100.07319.21
5.5.90.0070.04719.37
5.5.80.0130.04319.51
5.5.70.0030.08319.23
5.5.60.0100.03719.46
5.5.50.0030.04319.38
5.5.40.0030.04019.28
5.5.30.0070.07319.31
5.5.20.0100.04719.50
5.5.10.0030.06319.47
5.5.00.0100.07019.36
5.4.450.0030.05319.48
5.4.440.0100.04719.53
5.4.430.0030.04319.18
5.4.420.0030.07319.47
5.4.410.0070.08019.27
5.4.400.0070.07018.93
5.4.390.0100.04718.93
5.4.380.0000.07719.10
5.4.370.0030.04719.00
5.4.360.0030.05319.12
5.4.350.0100.07319.25
5.4.340.0130.03319.24
5.4.320.0100.06318.93
5.4.310.0100.04019.07
5.4.300.0100.07018.85
5.4.290.0070.07719.11
5.4.280.0100.06719.20
5.4.270.0030.04018.97
5.4.260.0070.08019.24
5.4.250.0130.06319.00
5.4.240.0100.03319.11
5.4.230.0000.05019.23
5.4.220.0100.03319.14
5.4.210.0030.05319.15
5.4.200.0030.03718.86
5.4.190.0130.04319.19
5.4.180.0100.07719.16
5.4.170.0100.05018.86
5.4.160.0070.07319.18
5.4.150.0030.06319.10
5.4.140.0000.04316.50
5.4.130.0130.07016.37
5.4.120.0030.07016.37
5.4.110.0100.06716.42
5.4.100.0100.04016.69
5.4.90.0070.07016.47
5.4.80.0100.07016.39
5.4.70.0070.07716.28
5.4.60.0100.06716.51
5.4.50.0130.07016.25
5.4.40.0030.05716.64
5.4.30.0030.08016.36
5.4.20.0100.06716.40
5.4.10.0100.05316.64
5.4.00.0030.07015.86
5.3.290.0030.08014.70
5.3.280.0070.04314.62
5.3.270.0170.05314.50
5.3.260.0030.08014.61
5.3.250.0200.04014.63
5.3.240.0100.07014.76
5.3.230.0000.05314.59
5.3.220.0100.07314.72
5.3.210.0070.07314.60
5.3.200.0030.04714.45
5.3.190.0100.04014.48
5.3.180.0070.05714.45
5.3.170.0100.07714.64
5.3.160.0070.07314.57
5.3.150.0100.07314.48
5.3.140.0030.07714.61
5.3.130.0100.07314.46
5.3.120.0170.07014.61
5.3.110.0070.07714.70
5.3.100.0070.07314.05
5.3.90.0070.07014.05
5.3.80.0030.04713.94
5.3.70.0200.06713.96
5.3.60.0070.06314.08
5.3.50.0000.05314.00
5.3.40.0170.06313.95
5.3.30.0030.04013.84
5.3.20.0100.06313.69
5.3.10.0030.04713.67
5.3.00.0030.08013.80
5.2.170.0070.06011.22
5.2.160.0100.04311.31
5.2.150.0000.06011.10
5.2.140.0030.03311.31
5.2.130.0070.03711.16
5.2.120.0030.05011.27
5.2.110.0100.03711.14
5.2.100.0070.03311.08
5.2.90.0000.06711.12
5.2.80.0100.06011.15
5.2.70.0100.02311.24
5.2.60.0000.03711.00
5.2.50.0030.04311.07
5.2.40.0000.03011.00
5.2.30.0000.04010.98
5.2.20.0000.03311.00
5.2.10.0030.02710.85
5.2.00.0000.06010.68
5.1.60.0070.05010.06
5.1.50.0030.0279.98
5.1.40.0030.0239.94
5.1.30.0000.02710.48
5.1.20.0000.02710.36
5.1.10.0070.05710.07
5.1.00.0030.03310.08
5.0.50.0030.0238.70
5.0.40.0030.0308.41
5.0.30.0030.0408.20
5.0.20.0100.0408.23
5.0.10.0100.0378.18
5.0.00.0070.0608.13
4.4.90.0000.0236.82
4.4.80.0000.0176.82
4.4.70.0000.0306.82
4.4.60.0000.0176.82
4.4.50.0000.0306.82
4.4.40.0000.0536.82
4.4.30.0000.0176.82
4.4.20.0030.0136.82
4.4.10.0130.0106.82
4.4.00.0000.0576.82
4.3.110.0000.0376.82
4.3.100.0070.0176.82
4.3.90.0030.0306.82
4.3.80.0000.0536.82
4.3.70.0000.0376.82
4.3.60.0070.0176.82
4.3.50.0000.0276.82
4.3.40.0000.0536.82
4.3.30.0000.0276.82
4.3.20.0000.0336.82
4.3.10.0000.0376.82
4.3.00.0030.0306.82

preferences:
39.85 ms | 401 KiB | 5 Q