3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; } class Bar { const BAZ = 'BAZ'; } $foo = new Foo(); $foo->bar = 'Bar'; var_dump($foo->bar::BAZ); var_dump(($foo->bar)::BAZ);

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.4.120.0050.00620.63
8.4.110.0110.01017.95
8.4.100.0110.00817.57
8.4.90.0150.00622.40
8.4.80.0150.00520.52
8.4.70.0060.00317.95
8.4.60.0100.01018.58
8.4.50.0110.00919.32
8.4.40.0080.00019.44
8.4.30.0060.00318.65
8.4.20.0060.00318.79
8.4.10.0100.01018.76
8.3.250.0140.00518.74
8.3.240.0060.00218.87
8.3.230.0080.01116.71
8.3.220.0070.00118.88
8.3.210.0100.00816.77
8.3.200.0120.00716.41
8.3.190.0110.00718.95
8.3.180.0120.00718.19
8.3.170.0100.00616.73
8.3.160.0150.00318.55
8.3.150.0090.00916.91
8.3.140.0070.01120.61
8.3.130.0040.00418.65
8.3.120.0070.00719.00
8.3.110.0030.00716.78
8.3.100.0090.00016.35
8.3.90.0040.00426.77
8.3.80.0030.00616.75
8.3.70.0110.00716.58
8.3.60.0100.01018.18
8.3.50.0090.00918.21
8.3.40.0110.00320.48
8.3.30.0140.00018.84
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0020.00526.16
8.2.290.0110.00516.79
8.2.280.0070.00218.26
8.2.270.0200.00016.61
8.2.260.0150.00418.92
8.2.250.0080.00016.71
8.2.240.0060.00318.40
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0100.00016.38
8.2.190.0180.00416.75
8.2.180.0180.00325.92
8.2.170.0090.00618.79
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0060.00326.16
8.2.110.0040.00720.50
8.2.100.0040.00817.72
8.2.90.0080.00017.38
8.2.80.0040.00418.78
8.2.70.0060.00317.80
8.2.60.0080.00017.97
8.2.50.0040.00418.10
8.2.40.0060.00321.11
8.2.30.0050.00319.16
8.2.20.0040.00418.11
8.2.10.0060.00321.01
8.2.00.0000.00819.14
8.1.330.0090.00116.20
8.1.320.0110.00816.11
8.1.310.0040.00416.44
8.1.300.0080.00018.30
8.1.290.0060.00330.84
8.1.280.0150.00325.92
8.1.270.0080.00023.99
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0030.00621.95
8.1.230.0070.00417.82
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01117.35
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0000.00818.93
8.1.150.0070.00018.89
8.1.140.0000.00718.95
8.1.130.0000.00720.05
8.1.120.0040.00417.37
8.1.110.0040.00417.47
8.1.100.0030.00517.49
8.1.90.0040.00417.38
8.1.80.0000.00817.39
8.1.70.0000.00717.48
8.1.60.0080.00017.49
8.1.50.0000.00917.45
8.1.40.0030.00617.55
8.1.30.0030.00517.59
8.1.20.0050.00217.64
8.1.10.0080.00017.56
8.1.00.0040.00417.57
8.0.300.0050.00320.07
8.0.290.0000.00716.63
8.0.280.0050.00218.45
8.0.270.0000.00716.74
8.0.260.0000.00618.62
8.0.250.0030.00317.04
8.0.240.0060.00016.92
8.0.230.0040.00416.87
8.0.220.0030.00316.93
8.0.210.0050.00316.86
8.0.200.0000.00717.00
8.0.190.0040.00416.95
8.0.180.0050.00316.93
8.0.170.0000.01016.89
8.0.160.0000.00816.85
8.0.150.0070.00016.89
8.0.140.0030.00916.84
8.0.130.0000.00613.41
8.0.120.0070.00016.84
8.0.110.0070.00016.79
8.0.100.0050.00316.91
8.0.90.0050.00316.94
8.0.80.0080.00816.86
8.0.70.0030.01716.95
8.0.60.0070.00716.78
8.0.50.0110.00316.83
8.0.30.0090.00516.82
8.0.20.0090.00616.94
8.0.10.0040.01117.02
8.0.00.0090.00617.06
7.4.330.0050.00015.55
7.4.320.0030.00316.51
7.4.300.0030.00316.52
7.4.290.0050.00216.35
7.4.280.0080.00016.55
7.4.270.0030.00316.57
7.4.260.0060.00013.34
7.4.250.0040.00416.40
7.4.240.0010.00616.58
7.4.230.0070.00016.52
7.4.220.0030.00316.64
7.4.210.0020.01416.56
7.4.200.0040.00916.51
7.4.190.0030.01016.77
7.4.180.0070.00716.69
7.4.160.0100.00716.57
7.4.150.0030.01516.47
7.4.140.0100.01016.58
7.4.130.0070.01416.41
7.4.120.0070.01416.56
7.4.110.0130.00316.43
7.4.100.0100.01016.57
7.4.90.0110.00916.49
7.4.80.0100.00316.53
7.4.70.0070.01416.41
7.4.60.0030.01016.48
7.4.50.0100.01016.39
7.4.40.0100.00316.44
7.4.30.0070.00716.55
7.4.20.0040.01016.48
7.4.10.0070.00716.53
7.4.00.0070.01316.45
7.3.330.0000.00716.25
7.3.320.0000.00513.00
7.3.310.0070.00016.13
7.3.300.0030.00316.25
7.3.290.0080.00816.22
7.3.280.0060.00616.18
7.3.270.0100.00316.17
7.3.260.0070.00716.22
7.3.250.0060.00616.16
7.3.240.0070.00716.23
7.3.230.0040.00816.30
7.3.220.0030.01016.18
7.3.210.0080.00416.18
7.3.200.0000.01316.19
7.3.190.0100.00316.15
7.3.180.0060.00616.19
7.3.170.0090.00416.17
7.3.160.0080.00816.09
7.3.150.0070.00816.32
7.3.140.0100.00316.18
7.3.130.0100.00316.17
7.3.120.0100.00316.14
7.3.110.0100.00316.07
7.3.100.0030.01016.05
7.3.90.0070.00716.51
7.3.80.0000.01316.09
7.3.70.0090.00616.35
7.3.60.0110.00316.42
7.3.50.0090.01216.34
7.3.40.0080.00516.41
7.3.30.0070.00716.34
7.3.20.0060.00916.43
7.3.10.0030.01016.36
7.3.00.0080.00516.30

preferences:
29.31 ms | 403 KiB | 5 Q