3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public string $hello = "world"; } class Test { public string $test = "B"; public function test() { return "B"; } } $class = new Test(); $test = new $class->test; echo $test->hello;

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.0100.00716.52
8.5.00.0130.00819.93
8.4.160.0090.01423.98
8.4.150.0030.00014.05
8.4.140.0150.00617.64
8.4.130.0130.00620.47
8.4.120.0120.00920.83
8.4.110.0100.01022.45
8.4.100.0160.00517.51
8.4.90.0140.00620.59
8.4.80.0080.01118.96
8.4.70.0070.00418.02
8.4.60.0140.00718.75
8.4.50.0130.00617.79
8.4.40.0120.00618.43
8.4.30.0060.01318.80
8.4.20.0160.00719.70
8.4.10.0070.01119.49
8.3.290.0110.01120.61
8.3.280.0140.00618.31
8.3.270.0160.00616.34
8.3.260.0070.00316.70
8.3.250.0130.00618.58
8.3.240.0090.01116.72
8.3.230.0050.00316.76
8.3.220.0110.00818.85
8.3.210.0110.00818.17
8.3.200.0100.00916.17
8.3.190.0100.00516.74
8.3.180.0140.00618.55
8.3.170.0100.00922.60
8.3.160.0040.01417.21
8.3.150.0150.00416.92
8.3.140.0110.00717.02
8.3.130.0070.00416.60
8.3.120.0060.00318.97
8.3.110.0000.00920.94
8.3.100.0090.00024.06
8.3.90.0000.00726.77
8.3.80.0030.00618.55
8.3.70.0160.00716.89
8.3.60.0270.00721.93
8.3.50.0100.00820.32
8.3.40.0280.00521.06
8.3.30.0280.00721.09
8.3.20.0290.00920.72
8.3.10.0340.00920.74
8.3.00.0370.00720.67
8.2.300.0130.00722.04
8.2.290.0040.00420.39
8.2.280.0120.00618.31
8.2.270.0140.00417.00
8.2.260.0030.01318.64
8.2.250.0150.00016.54
8.2.240.0060.00319.00
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0060.00926.77
8.2.200.0040.00416.50
8.2.190.0160.01417.19
8.2.180.0260.01120.33
8.2.170.0380.00420.97
8.2.160.0370.00520.84
8.2.150.0350.00620.96
8.2.140.0320.00820.82
8.2.130.0310.00720.78
8.2.120.0290.00720.82
8.2.110.0310.00720.77
8.2.100.0320.00620.84
8.2.90.0290.01120.92
8.2.80.0320.00720.81
8.2.70.0360.00520.86
8.2.60.0310.00920.76
8.2.50.0320.00720.77
8.2.40.0280.00720.71
8.2.30.0300.00520.79
8.2.20.0260.00620.79
8.2.10.0260.00920.72
8.2.00.0290.00620.74
8.1.340.0080.01217.64
8.1.330.0050.00521.93
8.1.320.0150.00616.08
8.1.310.0070.01016.64
8.1.300.0040.01217.78
8.1.290.0060.00318.88
8.1.280.0280.00820.31
8.1.270.0310.00820.69
8.1.260.0310.00820.64
8.1.250.0300.00720.61
8.1.240.0250.00820.59
8.1.230.0290.00920.66
8.1.220.0250.00820.66
8.1.210.0260.00720.54
8.1.200.0290.00820.54
8.1.190.0320.00720.38
8.1.180.0270.00820.54
8.1.170.0250.00720.61
8.1.160.0250.00720.61
8.1.150.0310.00420.46
8.1.140.0270.01020.56
8.1.130.0300.00720.57
8.1.120.0230.00920.55
8.1.110.0240.00720.54
8.1.100.0250.00820.59
8.1.90.0230.01020.66
8.1.80.0270.00520.61
8.1.70.0240.00720.64
8.1.60.0300.00920.69
8.1.50.0310.00820.73
8.1.40.0310.00920.71
8.1.30.0270.01220.71
8.1.20.0300.00920.74
8.1.10.0310.00720.78
8.1.00.0300.00720.71
7.4.330.0150.00416.58

preferences:
80.34 ms | 403 KiB | 5 Q