3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __get($prop) { echo 'Base: ' . $prop . "\n"; } } class bar extends foo { function __get($prop) { if (strpos($prop, '_') !== false) { parent::__get($prop); } else { echo 'Extended: ' . $prop . "\n"; } } } $b = new bar; $b->test; $b->_test;

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.0140.00018.43
8.3.50.0100.00721.96
8.3.40.0040.01118.84
8.3.30.0030.01218.68
8.3.20.0000.00720.21
8.3.10.0080.00023.61
8.3.00.0030.00519.14
8.2.180.0000.01616.63
8.2.170.0140.00322.96
8.2.160.0040.01120.53
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00020.73
8.2.110.0080.00022.08
8.2.100.0090.00317.72
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00917.91
8.2.50.0000.00918.07
8.2.40.0080.00019.75
8.2.30.0000.00818.34
8.2.20.0040.00417.56
8.2.10.0020.00518.03
8.2.00.0040.00417.60
8.1.280.0070.00725.92
8.1.270.0100.00024.02
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.24
8.1.230.0040.00819.07
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00717.35
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0060.00618.59
8.1.160.0000.00722.12
8.1.150.0040.00418.65
8.1.140.0040.00417.46
8.1.130.0030.00317.78
8.1.120.0000.00817.36
8.1.110.0040.00417.52
8.1.100.0070.00017.46
8.1.90.0040.00417.34
8.1.80.0000.00717.36
8.1.70.0040.00417.43
8.1.60.0030.00617.61
8.1.50.0000.00817.38
8.1.40.0060.00317.43
8.1.30.0040.00417.64
8.1.20.0040.00417.66
8.1.10.0030.00617.57
8.1.00.0080.00017.53
8.0.300.0070.00018.77
8.0.290.0030.00617.18
8.0.280.0000.00718.38
8.0.270.0030.00317.27
8.0.260.0030.00317.16
8.0.250.0030.00316.89
8.0.240.0030.00317.02
8.0.230.0040.00416.86
8.0.220.0040.00416.79
8.0.210.0000.00716.76
8.0.200.0000.00616.96
8.0.190.0000.00816.96
8.0.180.0000.00716.92
8.0.170.0030.00616.95
8.0.160.0030.00316.95
8.0.150.0050.00216.89
8.0.140.0070.00016.81
8.0.130.0050.00513.36
8.0.120.0060.00316.88
8.0.110.0040.00416.76
8.0.100.0000.00716.95
8.0.90.0080.00016.91
8.0.80.0120.00316.92
8.0.70.0030.00516.77
8.0.60.0030.00316.95
8.0.50.0000.00716.77
8.0.30.0050.01417.11
8.0.20.0110.00917.40
8.0.10.0030.00516.86
8.0.00.0060.01316.66
7.4.330.0000.00515.00
7.4.320.0030.00316.41
7.4.300.0060.00316.50
7.4.290.0070.00016.51
7.4.280.0030.00716.41
7.4.270.0050.00316.50
7.4.260.0030.00316.50
7.4.250.0000.00716.46
7.4.240.0030.00516.50
7.4.230.0040.00416.52
7.4.220.0110.00816.63
7.4.210.0100.01016.63
7.4.200.0000.00816.62
7.4.190.0000.00716.75
7.4.160.0130.01016.52
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0100.00716.57
7.4.120.0100.00616.66
7.4.110.0160.00716.53
7.4.100.0120.00616.50
7.4.90.0090.00916.54
7.4.80.0090.00919.39
7.4.70.0030.01416.50
7.4.60.0170.00016.47
7.4.50.0000.00816.35
7.4.40.0100.00616.51
7.4.30.0100.00716.55
7.4.00.0040.01114.79
7.3.330.0000.00613.37
7.3.320.0050.00013.11
7.3.310.0070.00016.27
7.3.300.0030.00316.30
7.3.290.0030.01416.31
7.3.280.0070.01016.28
7.3.270.0150.00317.40
7.3.260.0120.00916.30
7.3.250.0140.00616.38
7.3.240.0130.00316.29
7.3.230.0130.00616.39
7.3.210.0140.00916.59
7.3.200.0100.00619.39
7.3.190.0130.00316.55
7.3.180.0090.00616.28
7.3.170.0100.01016.59
7.3.160.0110.00616.43
7.3.120.0040.01114.77
7.2.330.0100.01016.82
7.2.320.0060.01316.59
7.2.310.0100.00716.43
7.2.300.0100.00616.80
7.2.290.0110.00716.91
7.2.00.0090.00619.31
7.1.100.0040.00817.84
7.1.70.0090.00617.26
7.1.60.0120.00919.70
7.1.50.0130.00916.81
7.1.00.0030.07722.40
7.0.200.0200.00916.63
7.0.140.0100.06722.21
7.0.60.0030.04019.98
7.0.50.0070.06717.73
7.0.40.0070.05020.27
7.0.30.0070.05020.16
7.0.20.0330.08020.12
7.0.10.0270.07020.25
7.0.00.0130.07720.09
5.6.280.0000.07321.02
5.6.210.0030.05320.53
5.6.200.0070.07318.15
5.6.190.0030.08720.50
5.6.180.0330.07020.48
5.6.170.0230.05020.51
5.6.160.0070.03720.57
5.6.150.0000.09318.14
5.6.140.0070.06018.28
5.6.130.0070.03718.18
5.6.120.0030.04021.05
5.6.110.0170.07021.05
5.6.100.0070.06720.97
5.6.90.0070.08320.96
5.6.80.0130.07720.44
5.5.350.3470.04020.43
5.5.340.0030.06317.95
5.5.330.0130.07320.26
5.5.320.0170.05320.25
5.5.310.0130.04720.27
5.5.300.0030.06717.94
5.5.290.0070.05017.96
5.5.280.0130.03320.87
5.5.270.0100.08020.67
5.5.260.0000.04320.86
5.5.250.0030.07720.55
5.5.240.0170.06720.26
5.4.450.3230.04019.41
5.4.440.3470.03719.49
5.4.430.3200.03719.54
5.4.420.2930.04019.27
5.4.410.2970.03719.07
5.4.400.3300.02718.99
5.4.390.2830.03719.00
5.4.380.3070.04018.94
5.4.370.3730.04019.20
5.4.360.3230.03719.10
5.4.350.2930.03719.15
5.4.340.3300.04019.14
5.4.320.2970.04319.25
5.4.310.3230.04319.15
5.4.300.2930.03318.94
5.4.290.3030.03318.87
5.4.280.3130.04018.87
5.4.270.3230.03718.95
5.4.260.3130.04718.87
5.4.250.2370.03318.88
5.4.240.3200.04319.25
5.4.230.3300.03319.14
5.4.220.3300.04319.30
5.4.210.3230.04019.23
5.4.200.3330.03319.09
5.4.190.3330.03318.98
5.4.180.3230.03318.93
5.4.170.3070.03319.13
5.4.160.2900.04019.20
5.4.150.3300.04318.99
5.4.140.3200.03316.34
5.4.130.2970.03316.50
5.4.120.2930.03716.43
5.4.110.2970.04316.61
5.4.100.2930.03716.56
5.4.90.3330.03716.64
5.4.80.3270.02716.57
5.4.70.3370.03716.48
5.4.60.2970.04016.43
5.4.50.3200.03716.53
5.4.40.3270.03016.34
5.4.30.3230.03316.34
5.4.20.3430.03316.23
5.4.10.3770.02716.43
5.4.00.3770.04015.83
5.3.290.3100.03314.68
5.3.280.3170.04014.51
5.3.270.3200.04014.68
5.3.260.3200.04014.58
5.3.250.3130.04014.51
5.3.240.3300.04014.63
5.3.230.3070.04014.52
5.3.220.2830.04014.56
5.3.210.2970.03714.48
5.3.200.3070.03014.49
5.3.190.2930.03714.58
5.3.180.3270.03714.61
5.3.170.3800.03314.63
5.3.160.3500.04014.65
5.3.150.3100.03314.54
5.3.140.3000.03314.64
5.3.130.3870.04014.71
5.3.120.3370.04014.45
5.3.110.3230.03714.63
5.3.100.3000.03314.07
5.3.90.2970.03714.07
5.3.80.3030.03714.07
5.3.70.3200.03714.07
5.3.60.3200.03314.17
5.3.50.3170.04314.07
5.3.40.3570.03014.07
5.3.30.3300.04314.07
5.3.20.3070.03314.07
5.3.10.2930.04014.07
5.3.00.2870.04314.07
5.2.170.2770.03314.07
5.2.160.2700.03714.07
5.2.150.2830.02314.07
5.2.140.2730.02714.07
5.2.130.3070.02014.07
5.2.120.2670.03014.07
5.2.110.2730.03314.07
5.2.100.3070.03314.07
5.2.90.2770.02714.07
5.2.80.2670.02714.07
5.2.70.2600.02314.07
5.2.60.2800.04014.07
5.2.50.3770.03014.07
5.2.40.2200.03014.07
5.2.30.2200.03014.07
5.2.20.2530.02314.07
5.2.10.2230.03314.07
5.2.00.2170.02714.07
5.1.60.1970.02714.07
5.1.50.2270.02314.07
5.1.40.2300.01714.07
5.1.30.2230.03014.07
5.1.20.2370.02014.07
5.1.10.2030.02314.07
5.1.00.2300.03014.07
5.0.50.1230.02714.07
5.0.40.1270.01314.07
5.0.30.1330.03014.07
5.0.20.1230.01714.07
5.0.10.0470.02714.07
5.0.00.1100.03014.07
4.4.90.1230.01714.07
4.4.80.1330.02014.07
4.4.70.1200.01714.07
4.4.60.1370.01714.07
4.4.50.1500.01714.07
4.4.40.1430.02714.07
4.4.30.1500.01314.07
4.4.20.1230.01714.07
4.4.10.1500.01714.07
4.4.00.1530.02714.07
4.3.110.1370.01014.07
4.3.100.0630.01714.07
4.3.90.1200.02014.07
4.3.80.1030.02314.07
4.3.70.0870.01314.07
4.3.60.1200.01314.07
4.3.50.1030.01714.07
4.3.40.0830.02714.07
4.3.30.0530.01314.07
4.3.20.0500.01714.07
4.3.10.0530.01314.07
4.3.00.0470.01714.07

preferences:
81.1 ms | 401 KiB | 5 Q