3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait MyTrait { public function __get($name) { echo $name; echo get_class($this); } } class Foo { use MyTrait; public function __get($name) { echo 'main'; echo get_class($this); } } $foo = new Foo(); echo $foo->unknown;

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.70.0130.00618.55
8.3.60.0180.00418.43
8.3.50.0150.00521.08
8.3.40.0030.01218.56
8.3.30.0070.00720.17
8.3.20.0070.00020.25
8.3.10.0030.00521.92
8.3.00.0000.00822.41
8.2.190.0040.01116.58
8.2.180.0090.00616.34
8.2.170.0070.00722.96
8.2.160.0110.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00419.64
8.2.110.0030.00622.10
8.2.100.0070.00419.40
8.2.90.0070.00019.26
8.2.80.0040.00419.39
8.2.70.0000.00817.50
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00717.97
8.2.20.0040.00417.65
8.2.10.0040.00417.68
8.2.00.0000.00717.55
8.1.280.0030.01325.92
8.1.270.0060.00320.45
8.1.260.0060.00326.35
8.1.250.0070.00728.09
8.1.240.0000.00923.93
8.1.230.0090.00318.85
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0040.00417.43
8.1.180.0000.00818.10
8.1.170.0000.00918.67
8.1.160.0000.00722.11
8.1.150.0040.00418.54
8.1.140.0000.00717.43
8.1.130.0030.00317.82
8.1.120.0050.00317.47
8.1.110.0000.00817.45
8.1.100.0040.00417.52
8.1.90.0040.00417.51
8.1.80.0070.00017.48
8.1.70.0070.00017.44
8.1.60.0000.00817.46
8.1.50.0040.00417.56
8.1.40.0040.00417.40
8.1.30.0020.00517.64
8.1.20.0040.00417.51
8.1.10.0050.00217.59
8.1.00.0020.00517.42
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0030.00318.54
8.0.270.0030.00317.24
8.0.260.0060.00016.86
8.0.250.0030.00316.88
8.0.240.0050.00316.94
8.0.230.0040.00316.85
8.0.220.0070.00016.95
8.0.210.0030.00316.77
8.0.200.0030.00316.86
8.0.190.0050.00316.94
8.0.180.0040.00416.81
8.0.170.0080.00016.83
8.0.160.0000.00716.75
8.0.150.0030.00716.91
8.0.140.0110.00016.84
8.0.130.0060.00013.35
8.0.120.0000.00816.78
8.0.110.0040.00416.87
8.0.100.0040.00316.84
8.0.90.0000.00716.68
8.0.80.0100.00616.86
8.0.70.0040.00416.90
8.0.60.0000.00816.89
8.0.50.0040.00416.71
8.0.30.0100.01017.24
8.0.20.0050.01617.40
8.0.10.0000.00716.82
8.0.00.0080.01016.63
7.4.330.0050.00015.00
7.4.320.0030.00316.59
7.4.300.0030.00316.45
7.4.290.0030.00316.42
7.4.280.0040.00416.48
7.4.270.0030.00316.36
7.4.260.0060.00316.50
7.4.250.0040.00416.54
7.4.240.0020.00516.50
7.4.230.0030.00316.66
7.4.220.0090.00916.49
7.4.210.0130.00316.48
7.4.200.0040.00416.25
7.4.190.0000.00716.59
7.4.160.0120.00316.57
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0090.00916.51
7.4.120.0130.00316.55
7.4.110.0040.01516.39
7.4.100.0110.00716.54
7.4.90.0130.00916.51
7.4.80.0090.00919.39
7.4.70.0110.00716.39
7.4.60.0140.00716.51
7.4.50.0000.00416.57
7.4.40.0030.01422.77
7.4.30.0090.00916.29
7.4.00.0070.00914.94
7.3.330.0000.00513.26
7.3.320.0020.00313.16
7.3.310.0000.00716.35
7.3.300.0030.00316.06
7.3.290.0100.00316.25
7.3.280.0050.01316.24
7.3.270.0090.00917.40
7.3.260.0120.00916.55
7.3.250.0150.00516.35
7.3.240.0190.00416.42
7.3.230.0110.00716.39
7.3.210.0070.01016.32
7.3.200.0170.00019.39
7.3.190.0160.00616.18
7.3.180.0100.00716.28
7.3.170.0070.01116.27
7.3.160.0070.01016.25
7.3.120.0080.00814.70
7.3.110.0070.01114.88
7.3.100.0080.00614.80
7.3.90.0100.00714.91
7.3.80.0000.00914.82
7.3.70.0030.01014.50
7.3.60.0000.00914.84
7.3.50.0120.00414.76
7.3.40.0150.00314.66
7.3.30.0110.00314.42
7.3.20.0030.01016.50
7.3.10.0060.00916.52
7.3.00.0050.00816.47
7.2.330.0100.00716.69
7.2.320.0120.00616.63
7.2.310.0140.00816.64
7.2.300.0030.01316.49
7.2.290.0130.00316.73
7.2.250.0150.00015.13
7.2.240.0120.00614.74
7.2.230.0040.01215.08
7.2.220.0000.01414.96
7.2.210.0040.01214.96
7.2.200.0040.01114.81
7.2.190.0030.00914.96
7.2.180.0070.00714.84
7.2.170.0100.00614.89
7.2.130.0070.00416.97
7.2.120.0040.00816.87
7.2.110.0070.00317.01
7.2.100.0000.01216.98
7.2.90.0080.00416.91
7.2.80.0060.00316.57
7.2.70.0060.00617.03
7.2.60.0070.00716.89
7.2.50.0090.00616.93
7.2.40.0030.00816.65
7.2.30.0040.01116.95
7.2.20.0030.01216.86
7.2.10.0100.00316.90
7.2.00.0030.01317.00
7.1.330.0060.00615.47
7.1.320.0030.01315.65
7.1.310.0080.00515.99
7.1.300.0060.00615.70
7.1.290.0030.01315.93
7.1.280.0070.00715.74
7.1.270.0100.00715.93
7.1.260.0030.01015.80
7.1.250.0000.01115.60
7.1.100.0060.00918.14
7.1.70.0000.00816.87
7.1.60.0100.00319.50
7.1.50.0070.01416.94
7.1.00.0070.04322.37
7.0.200.0030.01216.63
7.0.140.0030.07322.09
7.0.60.0070.07019.87
7.0.50.0100.03317.90
7.0.40.0130.05320.15
7.0.30.0430.06320.24
7.0.20.0370.07320.06
7.0.10.0270.06320.26
7.0.00.0070.05020.23
5.6.280.0100.06720.93
5.6.210.0070.07720.67
5.6.200.0070.06718.27
5.6.190.0070.05720.47
5.6.180.3730.04720.39
5.6.170.0270.08320.57
5.6.160.0070.04020.57
5.6.150.0030.05018.17
5.6.140.0130.03318.13
5.6.130.0100.07018.27
5.6.120.0030.05321.10
5.6.110.0100.08721.02
5.6.100.0070.08321.03
5.6.90.0170.07320.98
5.6.80.0170.07320.53
5.6.70.0130.08020.39
5.5.350.0100.07720.44
5.5.340.0030.04717.99
5.5.330.0130.05020.13
5.5.320.0270.05320.38
5.5.310.0300.07020.27
5.5.300.0070.07318.08
5.5.290.0100.03717.95
5.5.280.0030.08320.80
5.5.270.0070.04320.88
5.5.260.0070.07020.86
5.5.250.0100.04020.58
5.5.240.0030.03720.36
5.4.450.0830.06319.39
5.4.440.0700.06319.48
5.4.430.0830.05719.47
5.4.420.0700.05319.58
5.4.410.0900.06019.32
5.4.400.0370.06318.84
5.4.390.0430.06018.72
5.4.380.0270.05018.70
5.4.370.0130.05018.56
5.4.360.0200.04718.79
5.4.350.0120.08012.02
5.4.340.0040.06012.02
5.4.320.0060.03612.50
5.4.310.0080.04012.50
5.4.300.0070.04112.51
5.4.290.0080.04412.50
5.4.280.0050.04512.40
5.4.270.0080.03712.40
5.4.260.0080.04112.40
5.4.250.0070.05319.09
5.4.240.0100.05018.90
5.4.230.0070.05319.09
5.4.220.0130.05318.99
5.4.210.0230.06018.76
5.4.200.0170.05018.89
5.4.190.0100.05318.94
5.4.180.0200.04718.80
5.4.170.0070.05718.93
5.4.160.0330.05018.97
5.4.150.0230.06718.83
5.4.140.0100.05016.54
5.4.130.0130.04016.38
5.4.120.0070.05016.58
5.4.110.0230.03716.57
5.4.100.0170.04716.33
5.4.90.0100.04316.41
5.4.80.0130.04016.47
5.4.70.0130.04316.55
5.4.60.0130.06316.39
5.4.50.0070.05016.59
5.4.40.0000.05316.38
5.4.30.0070.05016.45
5.4.20.0030.05016.54
5.4.10.0070.05016.50
5.4.00.0070.04715.89
5.3.290.0070.03712.80
5.3.280.0070.05314.43
5.3.270.0030.06714.30
5.3.260.0200.05714.61
5.3.250.0070.07314.54
5.3.240.0100.04714.52
5.3.230.0030.05314.37
5.3.220.0070.05314.41
5.3.210.0030.05714.57
5.3.200.0170.04014.43
5.3.190.0000.06014.45
5.3.180.0130.04014.48
5.3.170.0070.05014.34
5.3.160.0100.04714.53
5.3.150.0100.05014.72
5.3.140.0030.05014.33
5.3.130.0070.05314.55
5.3.120.0030.05314.57
5.3.110.0070.05714.55
5.3.100.0170.04014.04
5.3.90.0100.04314.17
5.3.80.0100.04714.17
5.3.70.0030.05313.89
5.3.60.0130.05014.00
5.3.50.0070.05013.64
5.3.40.0130.04713.64
5.3.30.0170.06313.95
5.3.20.0070.05713.46
5.3.10.0100.04013.65
5.3.00.0070.04713.49
5.2.170.0100.03711.25
5.2.160.0100.03711.29
5.2.150.0070.04011.14
5.2.140.0100.03711.07
5.2.130.0070.05711.11
5.2.120.0070.03710.86
5.2.110.0070.04011.01
5.2.100.0030.04011.25
5.2.90.0100.03711.20
5.2.80.0070.04311.01
5.2.70.0070.03711.20
5.2.60.0170.03011.20
5.2.50.0100.03311.11
5.2.40.0070.04011.00
5.2.30.0030.04011.06
5.2.20.0070.04010.85
5.2.10.0170.03310.76
5.2.00.0070.03710.61
5.1.60.0070.0379.93
5.1.50.0070.04710.05
5.1.40.0030.03310.01
5.1.30.0000.04010.22
5.1.20.0000.03710.28
5.1.10.0000.0379.99
5.1.00.0100.0309.91
5.0.50.0070.0238.60
5.0.40.0070.0238.60
5.0.30.0070.0378.31
5.0.20.0000.0277.97
5.0.10.0100.0208.31
5.0.00.0000.0438.21
4.4.90.0000.0237.66
4.4.80.0000.0237.66
4.4.70.0030.0207.66
4.4.60.0000.0237.66
4.4.50.0000.0307.66
4.4.40.0070.0307.66
4.4.30.0000.0237.66
4.4.20.0030.0307.66
4.4.10.0030.0207.66
4.4.00.0030.0337.66
4.3.110.0000.0277.66
4.3.100.0000.0277.66
4.3.90.0000.0207.66
4.3.80.0000.0337.66
4.3.70.0000.0237.66
4.3.60.0070.0177.66
4.3.50.0030.0207.66
4.3.40.0030.0477.66
4.3.30.0030.0277.66
4.3.20.0030.0207.66
4.3.10.0030.0207.66
4.3.00.0100.0276.86

preferences:
60.14 ms | 401 KiB | 5 Q