3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function getUserEntityClass() { return 'apa'; } } class apa { public function bar() { echo "is here"; } } $foo = new foo; $test = new ($foo->getUserEntityClass()); $test->bar();

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.0130.00716.63
8.3.50.0130.00718.19
8.3.40.0070.00718.71
8.3.30.0100.00318.92
8.3.20.0040.00420.31
8.3.10.0040.00420.35
8.3.00.0060.00319.13
8.2.180.0120.00916.38
8.2.170.0140.00022.96
8.2.160.0070.00720.53
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00722.02
8.2.110.0040.00421.97
8.2.100.0030.00618.93
8.1.280.0070.00725.92
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0060.00318.63
8.1.230.0090.00018.57
5.4.320.0200.07719.22
5.4.310.0230.04718.98
5.4.300.0200.06319.07
5.4.290.0230.07318.99
5.4.280.0230.03319.22
5.4.270.0170.07718.85
5.4.260.0270.06019.09
5.4.250.0270.03718.94
5.4.240.0300.06719.17
5.4.230.0230.07319.12
5.4.220.0130.07019.07
5.4.210.0200.07319.20
5.4.200.0170.05718.94
5.4.190.0270.06719.30
5.4.180.0230.04719.07
5.4.170.0270.06019.18
5.4.160.0330.06319.22
5.4.150.0270.07018.83
5.4.140.0200.05716.40
5.4.130.0200.06716.56
5.4.120.0200.07716.73
5.4.110.0330.06316.59
5.4.100.0300.05316.32
5.4.90.0230.06016.61
5.4.80.0200.07016.57
5.4.70.0170.07316.49
5.4.60.0200.05316.43
5.4.50.0270.06316.34
5.4.40.0270.05716.49
5.4.30.0200.06316.32
5.4.20.0230.06716.38
5.4.10.0300.06716.51
5.4.00.0200.06715.96
5.3.290.0270.07014.67
5.3.280.0270.07314.57
5.3.270.0270.05314.51
5.3.260.0230.07314.60
5.3.250.0170.06714.51
5.3.240.0270.06714.77
5.3.230.0300.06014.60
5.3.220.0270.05714.64
5.3.210.0200.07714.64
5.3.200.0230.04014.48
5.3.190.0270.06714.56
5.3.180.0200.04714.58
5.3.170.0230.07014.79
5.3.160.0170.07714.54
5.3.150.0300.06014.57
5.3.140.0300.06314.64
5.3.130.0200.05714.46
5.3.120.0270.07314.52
5.3.110.0270.07014.46
5.3.100.0200.07313.96
5.3.90.0270.06314.07
5.3.80.0270.07013.95
5.3.70.0130.05714.03
5.3.60.0200.06314.16
5.3.50.0270.06713.86
5.3.40.0300.03313.87
5.3.30.0230.04714.00
5.3.20.0330.05713.67
5.3.10.0230.05313.78
5.3.00.0370.04013.72
5.2.170.0300.05012.98
5.2.160.0170.05012.98
5.2.150.0130.05012.98
5.2.140.0200.05712.98
5.2.130.0230.05312.98
5.2.120.0170.04312.98
5.2.110.0270.04712.98
5.2.100.0170.06712.98
5.2.90.0200.03012.98
5.2.80.0270.03312.98
5.2.70.0200.06012.98
5.2.60.0200.05012.98
5.2.50.0200.06712.98
5.2.40.0200.03012.98
5.2.30.0130.06012.98
5.2.20.0170.04712.98
5.2.10.0130.05712.98
5.2.00.0170.06012.98
5.1.60.0130.05012.98
5.1.50.0200.04312.98
5.1.40.0030.03012.98
5.1.30.0130.02312.98
5.1.20.0130.02312.98
5.1.10.0170.02712.98
5.1.00.0100.03012.98
5.0.50.0130.03712.98
5.0.40.0070.04012.98
5.0.30.0100.06012.98
5.0.20.0100.03712.98
5.0.10.0130.03712.98
5.0.00.0070.05312.98
4.4.90.0100.03312.98
4.4.80.0100.03012.98
4.4.70.0070.03712.98
4.4.60.0130.02712.98
4.4.50.0130.03012.98
4.4.40.0070.05012.98
4.4.30.0070.02312.98
4.4.20.0030.01712.98
4.4.10.0130.03012.98
4.4.00.0030.03312.98
4.3.110.0070.03312.98
4.3.100.0100.02712.98
4.3.90.0070.03312.98
4.3.80.0070.03312.98
4.3.70.0070.03312.98
4.3.60.0070.03712.98
4.3.50.0100.03012.98
4.3.40.0070.05012.98
4.3.30.0030.03712.98
4.3.20.0000.03312.98
4.3.10.0030.04012.98
4.3.00.0030.03712.98

preferences:
34.35 ms | 400 KiB | 5 Q