3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $field; } class B { public string $field; } $a = new A(); $b = new B(); var_dump($a->field); var_dump($b->field);

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.120.0090.00020.58
8.3.110.0090.00920.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0000.00918.55
8.3.70.0040.01118.15
8.3.60.0110.00418.38
8.3.50.0100.01016.86
8.3.40.0140.00721.91
8.3.30.0080.00819.34
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.240.0120.00318.79
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0090.00016.75
8.2.190.0160.00616.63
8.2.180.0070.01416.88
8.2.170.0100.01018.91
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00021.18
8.2.110.0140.00720.38
8.2.100.0120.00920.62
8.2.90.0110.01118.81
8.2.80.0120.00918.89
8.2.70.0110.01118.73
8.2.60.0090.00918.81
8.2.50.0250.00018.76
8.2.40.0130.01018.88
8.2.30.0100.00718.89
8.2.20.0100.01318.66
8.2.10.0100.00718.84
8.2.00.0060.00918.83
8.1.300.0030.00618.21
8.1.290.0040.00830.84
8.1.280.0130.00325.92
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0000.00928.09
8.1.240.0190.00318.49
8.1.230.0140.00718.61
8.1.220.0140.00718.54
8.1.210.0110.01119.88
8.1.200.0100.01318.56
8.1.190.0140.00318.39
8.1.180.0110.00718.29
8.1.170.0170.00318.44
8.1.160.0150.00618.58
8.1.150.0150.00618.63
8.1.140.0090.00918.44
8.1.130.0210.00018.49
8.1.120.0070.00718.36
8.1.110.0060.00318.38
8.1.100.0000.00918.41
8.1.90.0100.00318.61
8.1.80.0070.01420.34
8.1.70.0100.00720.57
8.1.60.0040.00720.51
8.1.50.0140.00318.71
8.1.40.0050.00518.97
8.1.30.0060.00318.61
8.1.20.0000.00918.73
8.1.10.0030.00718.45
8.1.00.0050.00518.75
8.0.300.0060.00317.78
8.0.290.0090.00017.82
8.0.280.0000.00917.82
8.0.270.0030.00617.81
8.0.260.0060.00317.68
8.0.250.0090.00017.88
8.0.240.0120.00817.89
8.0.230.0130.00717.86
8.0.220.0000.01017.88
8.0.210.0060.00317.70
8.0.200.0160.00317.88
8.0.190.0030.00618.01
8.0.180.0030.00617.75
8.0.170.0060.00319.70
8.0.160.0060.00319.74
8.0.150.0130.00717.75
8.0.140.0030.00617.74
8.0.130.0090.00017.94
8.0.120.0090.00017.64
8.0.110.0130.00618.08
8.0.100.0100.01017.79
8.0.90.0090.00317.93
8.0.80.0060.00317.85
8.0.70.0090.00017.79
8.0.60.0000.00917.59
8.0.50.0100.01017.79
8.0.30.0090.00017.88
8.0.20.0040.00417.88
8.0.10.0090.00017.83

preferences:
45.7 ms | 403 KiB | 5 Q