3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $x = 42; function __get($name) { $test = new Test2; return $test->$name;} } class Test2 { private $x = 42; function __get($name) { $test = new Test; return $test->$name;} } error_reporting(E_ALL); $test = new Test; var_dump($test->x);

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.0320.01036.25
8.3.50.0380.01634.48
8.3.40.0260.01336.84
8.3.30.0270.01038.34
8.3.20.0110.00737.17
8.3.10.0140.00338.92
8.3.00.0070.01041.55
8.2.180.0300.00327.38
8.2.170.0200.01329.69
8.2.160.0200.00731.22
8.2.150.0070.00729.81
8.2.140.0150.00031.51
8.2.130.0070.00731.97
8.2.120.0140.00031.01
8.2.110.0140.01030.06
8.2.100.0230.00028.78
8.2.90.0100.00330.13
8.2.80.0100.00330.38
8.2.70.0070.01028.50
8.2.60.0130.00328.80
8.2.50.0090.00628.38
8.2.40.0170.00428.72
8.2.30.0100.00330.54
8.2.20.0080.00428.70
8.2.10.0080.00428.64
8.2.00.0040.00828.60
8.1.280.0240.00729.16
8.1.270.0110.00433.14
8.1.260.0120.00431.51
8.1.250.0100.00333.97
8.1.240.0130.00332.41
8.1.230.0110.01132.04
8.1.220.0100.00328.66
8.1.210.0100.00330.03
8.1.200.0120.00328.47
8.1.190.0100.00328.53
8.1.180.0100.00328.78
8.1.170.0110.00429.63
8.1.160.0040.00830.07
8.1.150.0060.00629.80
8.1.140.0060.00628.63
8.1.130.0110.00328.96
8.1.120.0000.01228.68
8.1.110.0120.00028.58
8.1.100.0080.00428.53
8.1.90.0060.00628.53
8.1.80.0090.00328.65
8.1.70.0090.00328.48
8.1.60.0130.00628.77
8.1.50.0070.00728.67
8.1.40.0090.00628.59
8.1.30.0070.00728.75
8.1.20.0110.00428.85
8.1.10.0070.00728.57
8.1.00.0120.00028.59
8.0.300.0130.00330.48
8.0.290.0090.00427.80
8.0.280.0040.00729.17
8.0.270.0060.00627.83
8.0.260.0050.00527.53
8.0.250.0060.00627.65
8.0.240.0030.00927.55
8.0.230.0040.00727.68
8.0.220.0060.00627.68
8.0.210.0100.00327.57
8.0.200.0060.00627.56
8.0.190.0030.01027.68
8.0.180.0080.00427.61
8.0.170.0000.01227.64
8.0.160.0070.00727.55
8.0.150.0090.00327.66
8.0.140.0190.00027.57
8.0.130.0100.00024.11
8.0.120.0060.00627.46
8.0.110.0040.00827.55
8.0.100.0060.00627.50
8.0.90.0090.00327.66
8.0.80.0170.01127.53
8.0.70.0090.00327.38
8.0.60.0060.00627.36
8.0.50.0030.01027.66
8.0.30.0180.01527.76
8.0.20.0150.01627.73
8.0.10.0070.00427.56
8.0.00.0190.01227.40
7.4.330.0090.00026.74
7.4.320.0110.00627.34
7.4.300.0080.00427.48
7.4.290.0060.00627.51
7.4.280.0130.00027.46
7.4.270.0040.00727.50
7.4.260.0030.00724.40
7.4.250.0080.00427.50
7.4.240.0060.00627.58
7.4.230.0090.00327.69
7.4.220.0260.01027.58
7.4.210.0120.01927.61
7.4.200.0120.00027.40
7.4.190.0040.00827.40
7.4.160.0120.01627.77
7.4.150.0120.01927.55
7.4.140.0170.01327.56
7.4.130.0200.01927.55
7.4.120.0180.01227.62
7.4.110.0160.01327.64
7.4.100.0130.01927.56
7.4.90.0260.00727.55
7.4.80.0250.00627.70
7.4.70.0230.01027.66
7.4.60.0240.01027.56
7.4.50.0100.00327.52
7.4.40.0130.01027.33
7.4.30.0210.01227.45
7.4.00.0070.01425.95
7.3.330.0030.00724.42
7.3.320.0060.00324.42
7.3.310.0080.00427.18
7.3.300.0090.00327.12
7.3.290.0120.01627.29
7.3.280.0180.01327.31
7.3.270.0210.01127.38
7.3.260.0150.02027.42
7.3.250.0170.01427.46
7.3.240.0210.00927.46
7.3.230.0200.01027.53
7.3.210.0220.00927.20
7.3.200.0090.03027.20
7.3.190.0130.01727.36
7.3.180.0270.00727.21
7.3.170.0130.01627.46
7.3.160.0280.00327.22
7.3.120.0060.01025.57
7.2.330.0180.01226.98
7.2.320.0190.02327.04
7.2.310.0260.01727.04
7.2.300.0230.01326.64
7.2.290.0090.02226.92
7.2.00.0040.01129.14
7.1.100.0130.00327.63
7.1.70.0070.00427.11
7.1.60.0100.00727.36
7.1.50.0240.00727.07
7.1.00.0130.07032.23
7.0.200.0040.00730.67
7.0.140.0100.07336.14
7.0.100.0370.07034.89
7.0.90.0300.06735.05
7.0.80.0300.07735.03
7.0.70.0130.08035.00
7.0.60.0100.04335.10
7.0.50.0330.05035.63
7.0.40.0100.08028.11
7.0.30.0200.08327.96
7.0.20.0230.07727.95
7.0.10.0030.06727.99
7.0.00.0300.07028.01
5.6.280.0100.07736.34
5.6.250.0200.04335.98
5.6.240.0200.07335.89
5.6.230.0130.08035.86
5.6.220.0230.07335.84
5.6.210.0100.05035.79
5.6.200.0200.08036.15
5.6.190.0200.08036.26
5.6.180.0100.08736.33
5.6.170.0070.04336.26
5.6.160.0200.07336.28
5.6.150.0170.05336.31
5.6.140.0070.04336.24
5.6.130.0100.08336.15
5.6.120.0130.05036.23
5.6.110.0170.03736.12
5.6.100.0230.07736.30
5.6.90.0070.06736.11
5.6.80.0100.09735.57
5.6.70.0300.03335.58
5.6.60.0130.08335.61
5.6.50.0170.07035.59
5.6.40.0100.05335.59
5.6.30.0270.07335.49
5.6.20.0200.07335.59
5.6.10.0230.04335.61
5.6.00.0170.08735.49
5.5.380.0170.08335.97
5.5.370.0100.04335.87
5.5.360.0170.07335.88
5.5.350.0130.07735.97
5.5.340.0130.08036.37
5.5.330.0100.09036.30
5.5.320.0070.09336.29
5.5.310.0200.08036.34
5.5.300.0170.07736.15
5.5.290.0130.06036.31
5.5.280.0200.04736.24
5.5.270.0270.07336.37
5.5.260.0170.07736.42
5.5.250.0230.05036.07
5.5.240.0100.06735.65
5.5.230.0130.07735.81
5.5.220.0130.06735.66
5.5.210.0170.08035.75
5.5.200.0100.08335.68
5.5.190.0130.04735.73
5.5.180.0170.08735.66
5.5.160.0100.08735.66
5.5.150.0130.08735.76
5.5.140.0170.08035.77
5.5.130.0170.08035.75
5.5.120.0100.08735.50
5.5.110.0170.04735.64
5.5.100.0170.08335.67
5.5.90.0300.07035.52
5.5.80.0100.07335.58
5.5.70.0070.07035.60
5.5.60.0130.08035.54
5.5.50.0070.04035.59
5.5.40.0100.07335.59
5.5.30.0170.08035.52
5.5.20.0070.08335.66
5.5.10.0230.07335.48
5.5.00.0100.05335.59
5.4.450.0230.07735.12
5.4.440.0230.07335.01
5.4.430.0130.05035.03
5.4.420.0130.08334.86
5.4.410.0130.08035.00
5.4.400.0100.08734.69
5.4.390.0070.09734.59
5.4.380.0100.07334.68
5.4.370.0170.07334.55
5.4.360.0300.06034.71
5.4.350.0200.05334.72
5.4.340.0170.04734.90
5.4.320.0230.07334.72
5.4.310.0130.08734.79
5.4.300.0200.08034.89
5.4.290.0100.05334.80
5.4.280.0170.04034.73
5.4.270.0200.07334.80
5.4.260.0070.08734.55
5.4.250.0270.06034.89
5.4.240.0030.05334.70
5.4.230.0130.05034.90
5.4.220.0170.08034.91
5.4.210.0100.07734.71
5.4.200.0170.09034.80
5.4.190.0130.08334.86
5.4.180.0170.06034.71
5.4.170.0200.06734.70
5.4.160.0100.08334.57
5.4.150.0200.04734.79
5.4.140.0130.07031.88
5.4.130.0170.06031.66
5.4.120.0200.07331.86
5.4.110.0170.07032.10
5.4.100.0170.07332.19
5.4.90.0130.04332.20
5.4.80.0130.05032.22
5.4.70.0130.05732.23
5.4.60.0130.04332.16
5.4.50.0070.08332.18
5.4.40.0100.07732.02
5.4.30.0130.05032.07
5.4.20.0070.07732.10
5.4.10.0100.08332.18
5.4.00.0170.07031.30
5.3.290.0170.07732.26
5.3.280.0170.07332.26
5.3.270.0270.07732.25
5.3.260.0100.09032.25
5.3.250.0270.07032.28
5.3.240.0270.06732.31
5.3.230.0130.08032.35
5.3.220.0200.08032.00
5.3.210.0200.07332.03
5.3.200.0170.08332.16
5.3.190.0170.07332.03
5.3.180.0130.09032.03
5.3.170.0200.06732.04
5.3.160.0130.09032.13
5.3.150.0130.06732.08
5.3.140.0130.04732.03
5.3.130.0070.07331.97
5.3.120.0130.06332.20
5.3.110.0170.06732.20
5.3.100.0100.09731.51
5.3.90.0170.06031.80
5.3.80.0200.03331.31
5.3.70.0070.08731.25
5.3.60.0270.06331.39
5.3.50.0130.04731.34
5.3.40.0200.07331.27
5.3.30.0170.06331.16
5.3.20.0200.07031.05
5.3.10.0130.04330.95
5.3.00.0200.03731.35
5.2.170.0100.03725.88
5.2.160.0100.07325.95
5.2.150.0100.07725.85
5.2.140.0170.06025.90
5.2.130.0100.04325.91
5.2.120.0130.03325.80
5.2.110.0070.07025.89
5.2.100.0100.07325.96
5.2.90.0230.04725.87
5.2.80.0230.05726.02
5.2.70.0130.04326.04
5.2.60.0100.05326.01
5.2.50.0070.07026.02
5.2.40.0100.04025.92
5.2.30.0070.07725.83
5.2.20.0130.03025.91
5.2.10.0270.06025.73
5.2.00.0130.06025.80
5.1.60.0070.04726.60
5.1.50.0130.05326.64
5.1.40.0070.07026.72
5.1.30.0170.06327.01
5.1.20.0170.05726.98
5.1.10.0170.06326.75
5.1.00.0130.04026.81
5.0.50.0030.02012.24
5.0.40.0030.03312.24
5.0.30.0030.06012.24
5.0.20.0030.03012.24
5.0.10.0000.03312.24
5.0.00.0000.04012.24
4.4.90.0100.03012.24
4.4.80.0100.03012.24
4.4.70.0000.01712.24
4.4.60.0000.01712.24
4.4.50.0000.01712.24
4.4.40.0000.03012.24
4.4.30.0070.03012.24
4.4.20.0030.03012.24
4.4.10.0000.02012.24
4.4.00.0000.02712.24
4.3.110.0030.03312.24
4.3.100.0000.03012.24
4.3.90.0000.03712.24
4.3.80.0030.02312.24
4.3.70.0000.03012.24
4.3.60.0030.03312.24
4.3.50.0100.02312.24
4.3.40.0030.03712.24
4.3.30.0030.01712.24
4.3.20.0070.01712.24
4.3.10.0030.03012.24
4.3.00.0000.02312.24

preferences:
40.36 ms | 401 KiB | 5 Q