3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DoctrineType { public function implemented(): mixed { return 'bla'; } } class EnumType extends DoctrineType { public function implemented(): \stdClass { return new \stdClass(); } } $bar = new EnumType(); var_dump($bar->implemented());

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.5.10.0130.00518.58
8.5.00.0090.01219.84
8.4.150.0020.00014.05
8.4.140.0090.01217.76
8.4.130.0030.00720.43
8.4.120.0130.00724.27
8.4.110.0100.00919.58
8.4.100.0150.00618.86
8.4.90.0120.00918.84
8.4.80.0120.00818.43
8.4.70.0120.00918.71
8.4.60.0080.01020.70
8.4.50.0160.00418.57
8.4.40.0140.00619.47
8.4.30.0130.00620.48
8.4.20.0130.00719.53
8.4.10.0150.00024.37
8.3.280.0110.01018.21
8.3.270.0090.01016.48
8.3.260.0090.00716.68
8.3.250.0110.00918.89
8.3.240.0130.00716.86
8.3.230.0060.00216.73
8.3.220.0090.00918.99
8.3.210.0050.00316.67
8.3.200.0040.00516.40
8.3.190.0050.00318.96
8.3.180.0090.01018.80
8.3.170.0110.00817.10
8.3.160.0170.00017.20
8.3.150.0110.00716.48
8.3.140.0140.00416.49
8.3.130.0060.00316.61
8.3.120.0090.00919.09
8.3.110.0090.00620.94
8.3.100.0030.00616.65
8.3.90.0070.00726.77
8.3.80.0030.00616.63
8.3.70.0070.00716.58
8.3.60.0120.00316.38
8.3.50.0140.00718.14
8.3.40.0100.00320.29
8.3.30.0090.00618.77
8.3.20.0040.00424.18
8.3.10.0000.00924.66
8.3.00.0080.00026.16
8.2.290.0060.01120.44
8.2.280.0050.00518.66
8.2.270.0100.01018.32
8.2.260.0110.00717.34
8.2.250.0060.00316.40
8.2.240.0120.00318.85
8.2.230.0050.00322.58
8.2.220.0000.00924.06
8.2.210.0040.00426.77
8.2.200.0050.00516.75
8.2.190.0120.00616.58
8.2.180.0160.00325.92
8.2.170.0150.00018.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0020.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0060.00320.13
8.2.100.0090.00417.72
8.2.90.0040.00418.09
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0000.00717.88
8.2.20.0000.00820.44
8.2.10.0000.00717.91
8.2.00.0030.00619.19
8.1.330.0110.00721.95
8.1.320.0100.00816.19
8.1.310.0080.00016.60
8.1.300.0170.00316.25
8.1.290.0030.00630.84
8.1.280.0110.00725.92
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00621.89
8.1.230.0120.00020.79
8.1.220.0060.00317.74
8.1.210.0050.00318.79
8.1.200.0100.00017.23
8.1.190.0030.00617.22
8.1.180.0030.00618.10
8.1.170.0000.00818.50
8.1.160.0080.00018.87
8.1.150.0030.00518.55
8.1.140.0000.00717.43
8.1.130.0000.00718.78
8.1.120.0070.00017.30
8.1.110.0040.00417.32
8.1.100.0030.00617.39
8.1.90.0060.00317.31
8.1.80.0060.00317.28
8.1.70.0000.00917.36
8.1.60.0000.00817.58
8.1.50.0080.00017.57
8.1.40.0030.00617.51
8.1.30.0100.00017.62
8.1.20.0000.00817.58
8.1.10.0000.00717.45
8.1.00.0040.00417.42
8.0.300.0000.00720.07
8.0.290.0050.00316.75
8.0.280.0000.00718.25
8.0.270.0040.00416.63
8.0.260.0060.00018.27
8.0.250.0070.00016.97
8.0.240.0070.00016.76
8.0.230.0070.00016.90
8.0.220.0000.00716.66
8.0.210.0070.00016.84
8.0.200.0050.00316.80
8.0.190.0040.00416.89
8.0.180.0000.00716.75
8.0.170.0030.00316.79
8.0.160.0040.00416.65
8.0.150.0020.00516.62
8.0.140.0090.00016.71
8.0.130.0000.00716.64
8.0.120.0040.00416.80
8.0.110.0070.00016.75
8.0.100.0000.00816.83
8.0.90.0050.00316.81
8.0.80.0040.00416.67
8.0.70.0050.00216.84
8.0.60.0030.00316.85
8.0.50.0040.00416.72
8.0.30.0030.00316.83
8.0.20.0070.00016.80
8.0.10.0000.00716.77
7.4.330.0030.00315.55
7.4.320.0000.00616.46
7.4.300.0030.00316.57
7.4.290.0000.00816.22
7.4.280.0000.00716.44
7.4.270.0040.00416.53
7.4.260.0070.00016.55
7.4.250.0040.00416.43
7.4.240.0030.00316.30
7.4.230.0000.00716.38
7.4.220.0030.00316.56
7.4.210.0030.00316.29
7.4.200.0030.00316.46
7.4.190.0000.00716.57
7.4.180.0030.00316.53
7.4.160.0070.00016.53
7.4.150.0070.00016.30
7.4.140.0060.00316.29
7.4.130.0030.00316.21
7.4.120.0030.00316.30
7.4.110.0000.00716.31
7.4.100.0070.00016.35
7.4.90.0000.00716.18
7.4.80.0040.00416.40
7.4.70.0040.00416.34
7.4.60.0080.00016.33
7.4.50.0070.00316.24
7.4.40.0000.00716.36
7.4.30.0030.00316.18
7.4.20.0000.00816.30
7.4.10.0000.00716.12
7.4.00.0030.00316.23

preferences:
42.23 ms | 403 KiB | 5 Q