3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __get( $name ) { $this->$name = 'testing'; return $this->$name; } } $foo = new Foo(); var_dump( isset( $foo->attributes ) ); var_dump( $foo->attributes );

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.0140.00622.35
8.4.110.0110.01020.64
8.4.100.0050.00417.85
8.4.90.0110.00720.64
8.4.80.0050.00420.52
8.4.70.0090.01120.57
8.4.60.0110.00818.94
8.4.50.0110.01018.60
8.4.40.0110.01219.48
8.4.30.0120.00620.56
8.4.20.0070.01320.66
8.4.10.0130.00719.68
8.3.250.0100.00818.85
8.3.240.0120.00716.75
8.3.230.0040.00618.56
8.3.220.0120.00819.11
8.3.210.0100.00916.76
8.3.200.0040.00516.53
8.3.190.0100.00916.94
8.3.180.0120.00716.90
8.3.170.0070.00720.59
8.3.160.0070.01017.02
8.3.150.0130.00717.03
8.3.140.0000.00818.83
8.3.130.0050.00318.57
8.3.120.0120.00620.55
8.3.110.0050.00520.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0000.00916.50
8.3.70.0120.00618.68
8.3.60.0090.00616.79
8.3.50.0150.00016.58
8.3.40.0140.00021.89
8.3.30.0140.00722.96
8.3.20.0150.00423.61
8.3.10.0090.00923.57
8.3.00.0090.00922.96
8.2.290.0110.00718.41
8.2.280.0110.00718.16
8.2.270.0110.00716.93
8.2.260.0070.01116.80
8.2.250.0070.00716.58
8.2.240.0060.00317.37
8.2.230.0030.00722.58
8.2.220.0190.00337.54
8.2.210.0110.00726.77
8.2.200.0050.00516.72
8.2.190.0120.00916.63
8.2.180.0070.01418.54
8.2.170.0030.01022.96
8.2.160.0130.00722.96
8.2.150.0080.00822.96
8.2.140.0070.01322.96
8.2.130.0110.00322.96
8.2.120.0070.00722.96
8.2.110.0060.00922.96
8.2.100.0120.00922.96
8.2.90.0140.00722.96
8.2.80.0060.00922.96
8.2.70.0150.00022.96
8.2.60.0090.00622.96
8.2.50.0030.01222.96
8.2.40.0090.00622.96
8.2.30.0090.00622.96
8.2.20.0110.00322.96
8.2.10.0040.01122.96
8.2.00.0180.00422.96
8.1.330.0090.01021.57
8.1.320.0110.00915.98
8.1.310.0070.01018.47
8.1.300.0040.00417.66
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0130.00923.82
8.1.260.0040.01123.90
8.1.250.0100.01023.96
8.1.240.0130.00722.96
8.1.230.0000.01522.96
8.1.220.0110.00422.96
8.1.210.0090.00622.96
8.1.200.0070.00722.96
8.1.190.0120.00322.96
8.1.180.0130.00322.96
8.1.170.0130.00322.96
8.1.160.0100.00622.96
8.1.150.0110.00422.96
8.1.140.0100.00722.96
8.1.130.0090.00922.96
8.1.120.0110.00822.96
8.1.110.0090.00922.96
8.1.100.0100.00722.96
8.1.90.0070.01022.96
8.1.80.0040.01122.96
8.1.70.0120.00322.96
8.1.60.0040.01222.96
8.1.50.0090.00622.96
8.1.40.0090.00622.96
8.1.30.0070.00722.96
8.1.20.0180.00022.96
8.1.10.0070.01422.96
8.1.00.0060.01022.96

preferences:
25.84 ms | 403 KiB | 5 Q