3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $bar; public function __get($name) { //return 'string'; // Can no longer do this return 999; // Type has to match } } $foo = new Foo(); var_dump($foo->bar);

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.60.0040.01118.40
8.3.50.0180.00921.21
8.3.40.0090.00618.80
8.3.30.0070.00718.67
8.3.20.0090.00020.33
8.3.10.0080.00021.76
8.3.00.0000.00820.77
8.2.180.0120.00416.50
8.2.170.0100.00322.96
8.2.160.0030.01019.21
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00022.25
8.2.120.0040.00426.35
8.2.110.0060.00320.88
8.2.100.0120.00017.78
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.92
8.2.50.0080.00018.10
8.2.40.0000.01020.60
8.2.30.0040.00420.52
8.2.20.0040.00417.80
8.2.10.0000.00817.88
8.2.00.0040.00417.88
8.1.280.0040.01825.92
8.1.270.0030.00623.96
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00319.07
8.1.230.0060.00620.93
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0050.00318.42
8.1.160.0070.00020.77
8.1.150.0000.00818.69
8.1.140.0040.00419.63
8.1.130.0040.00417.68
8.1.120.0030.00417.32
8.1.110.0070.00017.32
8.1.100.0030.00517.29
8.1.90.0000.00917.40
8.1.80.0040.00417.39
8.1.70.0000.00717.28
8.1.60.0000.00817.54
8.1.50.0040.00417.42
8.1.40.0090.00317.52
8.1.30.0080.00017.62
8.1.20.0070.00017.61
8.1.10.0020.00517.46
8.1.00.0040.00417.51
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0000.00717.26
8.0.260.0000.00617.12
8.0.250.0030.00317.01
8.0.240.0000.00716.97
8.0.230.0000.00716.93
8.0.220.0040.00416.89
8.0.210.0040.00416.79
8.0.200.0030.00316.94
8.0.190.0050.00216.95
8.0.180.0000.00716.98
8.0.170.0030.00516.80
8.0.160.0000.00716.99
8.0.150.0040.00416.91
8.0.140.0000.00816.77
8.0.130.0000.00613.32
8.0.120.0050.00316.77
8.0.110.0000.00716.70
8.0.100.0030.00316.86
8.0.90.0030.00516.80
8.0.80.0100.00616.88
8.0.70.0040.00416.82
8.0.60.0030.00516.97
8.0.50.0030.00616.75
8.0.30.0120.00517.15
8.0.20.0150.00717.40
8.0.10.0030.00516.84
8.0.00.0100.00816.63
7.4.330.0000.00515.08
7.4.320.0070.00016.52
7.4.300.0000.00716.51
7.4.290.0050.00316.53
7.4.280.0040.00416.61
7.4.270.0040.00416.51
7.4.260.0070.00016.50
7.4.250.0060.00316.39
7.4.240.0040.00416.57
7.4.230.0080.00016.63
7.4.220.0120.00616.61
7.4.210.0130.00616.55
7.4.200.0040.00416.64
7.4.160.0100.00716.46
7.4.150.0100.01017.40
7.4.140.0100.00817.86
7.4.130.0080.01016.48
7.4.120.0050.01316.44
7.4.110.0130.00316.65
7.4.100.0090.00916.71
7.4.90.0100.00716.57
7.4.80.0070.01019.39
7.4.70.0130.00416.74
7.4.60.0100.00916.51
7.4.50.0070.01016.61
7.4.40.0060.01216.56
7.4.30.0110.00716.46
7.4.10.0000.01715.19
7.4.00.0070.01014.88
7.3.330.0050.00013.01
7.3.320.0030.00313.11
7.3.310.0030.00516.23
7.3.300.0000.00716.06
7.3.290.0090.00616.18
7.3.280.0100.00816.15
7.3.270.0100.00717.40
7.3.260.0090.00916.20
7.3.250.0110.00616.28
7.3.240.0150.00316.17
7.3.230.0070.01016.39
7.3.210.0030.01316.20
7.3.200.0110.01116.37
7.3.190.0070.01016.33
7.3.180.0110.00716.39
7.3.170.0100.00716.26
7.3.160.0090.01116.36
7.3.130.0040.01414.77
7.3.120.0060.00614.66
7.3.110.0030.01314.76
7.3.100.0000.01414.71
7.3.90.0060.00914.80
7.3.80.0000.00914.63
7.3.70.0070.00414.41
7.3.60.0070.00414.82
7.3.50.0030.00614.42
7.3.40.0060.01014.78
7.3.30.0040.00714.66
7.3.20.0060.00316.63
7.3.10.0050.00516.61
7.3.00.0000.00916.72
7.2.330.0100.01316.35
7.2.320.0120.01016.43
7.2.310.0090.00616.29
7.2.300.0070.01216.19
7.2.290.0070.01016.26
7.2.260.0070.01314.73
7.2.250.0070.01114.59
7.2.240.0000.01414.94
7.2.230.0030.01314.75
7.2.220.0070.00714.99
7.2.210.0060.00915.02
7.2.200.0030.01214.70
7.2.190.0070.00714.66
7.2.180.0070.00414.50
7.2.170.0000.00914.68
7.2.160.0030.01214.63
7.2.150.0040.00816.64
7.2.140.0070.00316.73
7.2.130.0030.01016.86
7.2.120.0060.00316.61
7.2.110.0000.01616.74
7.2.100.0030.00716.63
7.2.90.0000.01416.91
7.2.80.0000.01116.62
7.2.70.0060.00916.82
7.2.60.0030.01216.63
7.2.50.0040.01116.73
7.2.40.0000.01616.74
7.2.30.0110.00316.67
7.2.20.0030.00916.59
7.2.10.0100.00316.83
7.2.00.0000.01516.85
7.1.330.0060.00615.58
7.1.320.0040.01115.77
7.1.310.0030.01015.78
7.1.300.0080.00015.62
7.1.290.0000.01115.43
7.1.280.0000.01515.62
7.1.270.0060.00315.39
7.1.260.0000.00815.58
7.1.250.0040.00715.84
7.1.240.0030.00615.36
7.1.230.0070.00715.41
7.1.220.0100.00315.56
7.1.210.0030.00815.69
7.1.200.0050.00315.75
7.1.190.0090.00315.28
7.1.180.0080.00815.52
7.1.170.0070.01015.43
7.1.160.0000.00815.80
7.1.150.0040.00815.82
7.1.140.0060.00615.57
7.1.130.0000.01315.64
7.1.120.0060.00815.83
7.1.110.0030.00915.82
7.1.100.0060.00615.66
7.1.90.0070.01015.59
7.1.80.0060.00915.58
7.1.70.0070.00715.75
7.1.60.0060.00915.45
7.1.50.0000.01715.57
7.1.40.0070.00715.58
7.1.30.0000.01115.72
7.1.20.0070.00715.45
7.1.10.0110.00415.64
7.1.00.0040.00715.71
7.0.330.0040.00814.96
7.0.320.0070.00315.14
7.0.310.0000.01015.36
7.0.300.0060.00915.11
7.0.290.0060.00615.30
7.0.280.0080.00715.34
7.0.270.0030.01015.13
7.0.260.0000.01315.43
7.0.250.0090.00615.18
7.0.240.0090.00615.41
7.0.230.0070.00715.54
7.0.220.0070.00715.28
7.0.210.0070.00315.35
7.0.200.0030.01115.42
7.0.190.0040.00815.27
7.0.180.0090.00015.13
7.0.170.0030.00615.26
7.0.160.0100.00315.15
7.0.150.0070.00715.06
7.0.140.0120.00615.45
7.0.130.0090.00315.39
7.0.120.0110.00415.28
7.0.110.0100.00615.40
7.0.100.0030.01215.30
7.0.90.0090.00915.52
7.0.80.0070.00715.46
7.0.70.0040.01115.18
7.0.60.0030.01015.28
7.0.50.0070.00315.41
7.0.40.0220.03016.92
7.0.30.0080.03616.82
7.0.20.0230.03516.70
7.0.10.0190.03516.87
7.0.00.0260.03216.68
5.6.400.0000.01014.20
5.6.390.0090.00014.23
5.6.380.0030.00913.98
5.6.370.0030.00914.18
5.6.360.0070.01013.83
5.6.350.0100.00313.81
5.6.340.0000.01213.95
5.6.330.0040.01113.67
5.6.320.0030.01314.15
5.6.310.0030.00614.36
5.6.300.0030.01514.20
5.6.290.0030.00713.93
5.6.280.0090.00014.15
5.6.270.0060.00314.08
5.6.260.0100.00314.17
5.6.250.0030.01314.31
5.6.240.0090.00914.02
5.6.230.0030.01014.13
5.6.220.0030.01313.98
5.6.210.0030.01214.14
5.6.200.0070.01014.28
5.6.190.0180.03317.50
5.6.180.0050.03817.43
5.6.170.0220.03217.33
5.6.160.0150.03717.49
5.6.150.0220.03017.13
5.6.140.0220.03617.17
5.6.130.0200.03217.10
5.6.120.0130.03317.32
5.6.110.0090.03317.17
5.6.100.0140.03017.26
5.6.90.0260.03017.27
5.6.80.0150.03516.91
5.6.70.0210.02816.84
5.6.60.0230.02816.96
5.6.50.0150.03216.79
5.6.40.0200.03316.91
5.6.30.0220.03016.92
5.6.20.0150.03316.96
5.6.10.0180.03016.93
5.6.00.0320.03416.88
5.5.380.0070.01014.29
5.5.370.0070.00714.19
5.5.360.0170.00014.14
5.5.350.0060.00614.03
5.5.340.0030.01014.07
5.5.330.0130.03017.08
5.5.320.0050.03617.15
5.5.310.0200.03217.28
5.5.300.0180.03916.92
5.5.290.0250.04017.09
5.5.280.0100.03117.28
5.5.270.0150.02517.01
5.5.260.0200.02917.06
5.5.250.0220.03016.92
5.5.240.0180.03016.63
5.5.230.0220.03216.89
5.5.220.0190.03016.83
5.5.210.0150.03416.83
5.5.200.0150.03316.62
5.5.190.0130.03616.83
5.5.180.0130.03616.75
5.5.170.0030.01314.06
5.5.160.0080.03216.78
5.5.150.0080.03516.71
5.5.140.0110.04316.67
5.5.130.0200.03516.83
5.5.120.0200.03316.89
5.5.110.0260.03916.78
5.5.100.0130.03316.75
5.5.90.0290.02416.50
5.5.80.0200.03116.83
5.5.70.0170.03316.81
5.5.60.0250.03516.69
5.5.50.0080.03216.72
5.5.40.0050.03016.69
5.5.30.0040.03916.65
5.5.20.0240.02916.75
5.5.10.0170.04116.71
5.5.00.0220.04016.66

preferences:
58.96 ms | 401 KiB | 5 Q