3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public string $pizda = 'pizda ruly'; public string $test = 'vse norm'; } $foo = new Foo; $test = 'pizda'; 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.0090.01022.38
8.4.110.0140.00722.34
8.4.100.0110.00717.97
8.4.90.0110.00918.75
8.4.80.0150.00717.93
8.4.70.0090.00817.71
8.4.60.0120.00918.88
8.4.50.0140.00320.29
8.4.40.0060.00617.61
8.4.30.0160.00320.48
8.4.20.0080.00818.00
8.4.10.0070.00319.64
8.3.250.0110.00818.75
8.3.240.0100.00916.53
8.3.230.0100.00616.70
8.3.220.0050.00317.16
8.3.210.0130.00518.24
8.3.200.0050.00416.29
8.3.190.0140.00718.77
8.3.180.0040.00416.60
8.3.170.0030.01417.21
8.3.160.0110.00818.44
8.3.150.0070.01020.61
8.3.140.0120.00417.14
8.3.130.0040.00418.36
8.3.120.0070.00418.79
8.3.110.0060.00320.94
8.3.100.0000.01624.06
8.3.90.0050.00326.77
8.3.80.0060.00318.55
8.3.70.0220.00716.58
8.3.60.0140.00018.34
8.3.50.0090.00616.44
8.3.40.0040.01121.80
8.3.30.0030.01019.13
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00922.23
8.2.280.0130.00522.58
8.2.270.0140.00417.18
8.2.260.0070.00718.79
8.2.250.0040.00416.72
8.2.240.0070.00317.12
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0050.00226.77
8.2.200.0060.00316.50
8.2.190.0070.00718.54
8.2.180.0120.00325.92
8.2.170.0130.00622.96
8.2.160.0070.01322.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00221.03
8.2.110.0030.00622.20
8.2.100.0120.00018.44
8.2.90.0230.00718.44
8.2.80.0240.00618.44
8.2.70.0210.00918.44
8.2.60.0100.00319.35
8.2.50.0280.00318.44
8.2.40.0220.00018.65
8.2.30.0160.01018.44
8.2.20.0060.00618.44
8.2.10.0230.00518.44
8.2.00.0170.01118.44
8.1.330.0090.00921.98
8.1.320.0140.00615.99
8.1.310.0030.01416.70
8.1.300.0030.01219.61
8.1.290.0070.00430.84
8.1.280.0060.00925.92
8.1.270.0090.00024.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00422.70
8.1.230.0060.01218.84
8.1.220.0250.00318.44
8.1.210.0240.00318.44
8.1.200.0230.00318.44
8.1.190.0200.00818.44
8.1.180.0270.00018.44
8.1.170.0180.00918.44
8.1.160.0160.01018.44
8.1.150.0220.00618.44
8.1.140.0180.00918.44
8.1.130.0270.00018.44
8.1.120.0190.00718.44
8.1.110.0260.00018.44
8.1.100.0220.00318.44
8.1.90.0190.00818.44
8.1.80.0270.00018.44
8.1.70.0180.00918.44
8.1.60.0250.00418.44
8.1.50.0210.00618.44
8.1.40.0250.00918.44
8.1.30.0240.00818.44
8.1.20.0210.00618.44
8.1.10.0200.00718.44
8.1.00.0160.01218.44
8.0.300.0250.00418.44
8.0.290.0250.00518.44
8.0.280.0240.00418.44
8.0.270.0240.00418.44
8.0.260.0200.00818.44
8.0.250.0240.00318.44
8.0.240.0160.00818.44
8.0.230.0220.00418.44
8.0.220.0230.00318.44
8.0.210.0240.00418.44
8.0.200.0210.00518.44
8.0.190.0160.01218.44
8.0.180.0250.00018.44
8.0.170.0240.00318.44
8.0.160.0290.00018.44
8.0.150.0190.00918.44
8.0.140.0230.00318.44
8.0.130.0250.00318.44
8.0.120.0180.00918.44
8.0.110.0260.00018.44
8.0.100.0200.00718.44
8.0.90.0280.00018.44
8.0.80.0210.00618.44
8.0.70.0240.00318.44
8.0.60.0170.00818.44
8.0.50.0140.00918.44
8.0.30.0210.00418.44
8.0.20.0240.00318.44
8.0.10.0310.00018.44

preferences:
32.86 ms | 403 KiB | 5 Q