3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $value = 'hello world'; public $test = 'vse norm'; } $foo = new Foo; $test = 'value'; echo $foo->test . "\n"; echo $foo->$test . "\n";

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.0070.00219.52
8.4.110.0090.01025.77
8.4.100.0060.00317.59
8.4.90.0130.00620.70
8.4.80.0040.00418.75
8.4.70.0080.00417.54
8.4.60.0110.00918.82
8.4.50.0150.00720.32
8.4.40.0050.00517.43
8.4.30.0130.00720.39
8.4.20.0040.01817.74
8.4.10.0060.00319.23
8.3.250.0070.00316.64
8.3.240.0040.00416.50
8.3.230.0050.00516.70
8.3.220.0090.00519.02
8.3.210.0140.00418.29
8.3.200.0050.00416.53
8.3.190.0110.00818.94
8.3.180.0090.01016.28
8.3.170.0140.00717.19
8.3.160.0110.00418.34
8.3.150.0070.01120.65
8.3.140.0080.00020.45
8.3.130.0100.00018.35
8.3.120.0110.00318.70
8.3.110.0120.00320.94
8.3.100.0050.00524.06
8.3.90.0040.00426.77
8.3.80.0040.00718.16
8.3.70.0030.01416.50
8.3.60.0110.01116.50
8.3.50.0040.01816.59
8.3.40.0130.00621.79
8.3.30.0110.00419.05
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0100.01016.66
8.2.280.0080.00722.62
8.2.270.0140.00717.21
8.2.260.0050.00218.96
8.2.250.0090.00616.50
8.2.240.0040.00417.10
8.2.230.0050.00322.58
8.2.220.0060.00637.54
8.2.210.0000.01026.77
8.2.200.0060.00316.63
8.2.190.0000.01516.58
8.2.180.0040.01118.30
8.2.170.0110.00318.96
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0030.00726.16
8.2.120.0040.00420.90
8.2.110.0070.00421.06
8.2.100.0280.00418.44
8.2.90.0260.00618.44
8.2.80.0260.00518.44
8.2.70.0260.00418.44
8.2.60.0250.00518.44
8.2.50.0250.00518.44
8.2.40.0200.00318.61
8.2.30.0230.00418.44
8.2.20.0240.00418.44
8.2.10.0260.00418.44
8.2.00.0210.00618.44
8.1.330.0150.00315.97
8.1.320.0170.00316.22
8.1.310.0040.00416.62
8.1.300.0040.00419.57
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.21
8.1.230.0150.00418.94
8.1.220.0200.00818.44
8.1.210.0240.00518.44
8.1.200.0210.00618.44
8.1.190.0240.00318.44
8.1.180.0190.00718.44
8.1.170.0210.00618.44
8.1.160.0220.00518.44
8.1.150.0190.00818.44
8.1.140.0210.00518.44
8.1.130.0220.00718.44
8.1.120.0210.00618.44
8.1.110.0200.00818.44
8.1.100.0240.00318.44
8.1.90.0220.00518.44
8.1.80.0230.00418.44
8.1.70.0230.00518.44
8.1.60.0210.00618.44
8.1.50.0220.00618.44
8.1.40.0210.00618.44
8.1.30.0230.00818.44
8.1.20.0260.00318.44
8.1.10.0170.01118.44
8.1.00.0240.00318.44
8.0.300.0260.00318.44
8.0.290.0270.00118.44
8.0.280.0210.00618.44
8.0.270.0220.00518.44
8.0.260.0250.00318.44
8.0.250.0240.00318.44
8.0.240.0170.00718.44
8.0.230.0190.00618.44
8.0.220.0170.00918.44
8.0.210.0190.00718.44
8.0.200.0210.00518.44
8.0.190.0250.00318.44
8.0.180.0220.00518.44
8.0.170.0230.00518.44
8.0.160.0200.00718.44
8.0.150.0240.00318.44
8.0.140.0220.00718.44
8.0.130.0230.00618.44
8.0.120.0240.00318.44
8.0.110.0230.00518.44
8.0.100.0230.00518.44
8.0.90.0200.00818.44
8.0.80.0220.00618.44
8.0.70.0190.00818.44
8.0.60.0210.00418.44
8.0.50.0180.00618.44
8.0.30.0210.00518.44
8.0.20.0250.00218.44
8.0.10.0230.00318.44

preferences:
26.3 ms | 403 KiB | 5 Q