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 '_: ' . $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.0120.00418.16
8.3.50.0090.01021.99
8.3.40.0120.00318.66
8.3.30.0110.00418.96
8.3.20.0070.00020.34
8.3.10.0040.00423.40
8.3.00.0080.00018.99
8.2.180.0040.01116.38
8.2.170.0140.00722.96
8.2.160.0070.00720.47
8.2.150.0100.00024.18
8.2.140.0030.00524.66
8.2.130.0030.00326.16
8.2.120.0040.00420.91
8.2.110.0050.00522.25
8.2.100.0000.01219.51
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0100.00017.50
8.2.60.0110.00017.99
8.2.50.0060.00318.07
8.2.40.0050.00321.01
8.2.30.0040.00418.13
8.2.20.0060.00317.68
8.2.10.0040.00418.05
8.2.00.0000.00817.56
8.1.280.0170.00325.92
8.1.270.0000.01023.92
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0130.00724.00
8.1.230.0080.00418.97
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0080.00022.01
8.1.150.0040.00418.59
8.1.140.0040.00417.39
8.1.130.0000.00717.80
8.1.120.0030.00517.36
8.1.110.0030.00617.49
8.1.100.0040.00417.52
8.1.90.0000.00717.37
8.1.80.0000.00717.36
8.1.70.0000.00817.41
8.1.60.0000.00817.50
8.1.50.0040.00417.50
8.1.40.0040.00417.41
8.1.30.0080.00017.64
8.1.20.0040.00417.59
8.1.10.0000.00717.52
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0000.00718.45
8.0.270.0040.00417.22
8.0.260.0060.00017.24
8.0.250.0000.00716.86
8.0.240.0030.00316.96
8.0.230.0030.00316.82
8.0.220.0050.00316.79
8.0.210.0000.00716.93
8.0.200.0030.00316.82
8.0.190.0040.00416.99
8.0.180.0070.00016.96
8.0.170.0040.00416.82
8.0.160.0000.00716.89
8.0.150.0000.00816.84
8.0.140.0040.00416.88
8.0.130.0030.00313.34
8.0.120.0000.00816.88
8.0.110.0000.00816.79
8.0.100.0040.00416.89
8.0.90.0030.00516.70
8.0.80.0030.01216.86
8.0.70.0020.00516.72
8.0.60.0000.00716.63
8.0.50.0000.00816.90
8.0.30.0090.00917.26
8.0.20.0100.00917.40
8.0.10.0000.00717.01
8.0.00.0120.00916.54
7.4.330.0050.00015.16
7.4.320.0040.00416.48
7.4.300.0040.00416.50
7.4.290.0030.00316.47
7.4.280.0040.00716.41
7.4.270.0070.00016.59
7.4.260.0000.00716.39
7.4.250.0040.00416.46
7.4.240.0030.00416.60
7.4.230.0030.00316.51
7.4.220.0100.01716.54
7.4.210.0060.01416.64
7.4.200.0020.00516.50
7.4.190.0070.00016.51
7.4.160.0080.00816.36
7.4.150.0090.01217.40
7.4.140.0140.00517.86
7.4.130.0050.01116.42
7.4.120.0140.00516.45
7.4.110.0060.01216.44
7.4.100.0060.01216.34
7.4.90.0030.01316.55
7.4.80.0100.01419.39
7.4.70.0070.01016.55
7.4.60.0110.00816.54
7.4.50.0000.00516.36
7.4.40.0120.00916.46
7.4.30.0060.01116.48
7.4.00.0040.01214.92
7.3.330.0050.00013.29
7.3.320.0050.00013.22
7.3.310.0040.00416.14
7.3.300.0000.00716.16
7.3.290.0070.00716.18
7.3.280.0060.01016.26
7.3.270.0070.01017.40
7.3.260.0120.01116.36
7.3.250.0050.01516.29
7.3.240.0110.00616.28
7.3.230.0090.00916.39
7.3.210.0090.00916.61
7.3.200.0060.00919.39
7.3.190.0030.01316.59
7.3.180.0060.00916.30
7.3.170.0000.01616.27
7.3.160.0090.01216.20
7.3.120.0070.00914.81
7.3.110.0090.00814.83
7.3.100.0090.00714.81
7.3.90.0030.01014.81
7.3.80.0090.00614.74
7.3.70.0060.00714.73
7.3.60.0020.00914.73
7.3.50.0100.00614.70
7.3.40.0070.00514.74
7.3.30.0040.00914.81
7.3.20.0080.00516.55
7.3.10.0070.00616.47
7.3.00.0070.00616.36
7.2.330.0150.00916.56
7.2.320.0060.01316.85
7.2.310.0120.00616.81
7.2.300.0090.00616.80
7.2.290.0030.01716.85
7.2.250.0080.00814.89
7.2.240.0070.00715.02
7.2.230.0080.00915.10
7.2.220.0070.00915.17
7.2.210.0100.00715.03
7.2.200.0060.00914.91
7.2.190.0040.00915.14
7.2.180.0050.00914.98
7.2.170.0020.01115.01
7.2.130.0110.00316.54
7.2.120.0100.00516.73
7.2.110.0140.00516.55
7.2.100.0100.00616.64
7.2.90.0080.01016.62
7.2.80.0140.00516.56
7.2.70.0100.01016.27
7.2.60.0180.00716.65
7.2.50.0160.00616.51
7.2.40.0170.00316.44
7.2.30.0140.00716.72
7.2.20.0120.00916.69
7.2.10.0140.00816.64
7.2.00.0120.00517.64
7.1.330.0020.01315.85
7.1.320.0050.00815.97
7.1.310.0050.00815.85
7.1.300.0040.00915.81
7.1.290.0080.00615.69
7.1.280.0060.00815.76
7.1.270.0030.00815.82
7.1.260.0060.00815.70
7.1.250.0050.00915.49
7.1.100.0210.01417.84
7.1.70.0000.00817.40
7.1.60.0030.00719.70
7.1.50.0060.01616.81
7.1.00.0030.07722.43
7.0.200.0150.00816.28
7.0.140.0000.07722.01
7.0.60.0030.09019.80
7.0.50.0030.08317.86
7.0.40.0130.08320.13
7.0.30.0330.06020.30
7.0.20.0270.05720.23
7.0.10.0100.06720.05
7.0.00.0070.08720.12
5.6.280.0000.07721.15
5.6.210.0170.05020.48
5.6.200.0230.07018.22
5.6.190.0100.08020.33
5.6.180.0200.05320.34
5.6.170.0170.07320.54
5.6.160.0030.04020.46
5.6.150.0000.04018.19
5.6.140.0070.05718.15
5.6.130.0070.08318.16
5.6.120.0170.03721.12
5.6.110.0030.07320.99
5.6.100.0100.08020.98
5.6.90.0030.04321.04
5.6.80.0170.05720.50
5.5.350.0170.07320.41
5.5.340.0170.07317.95
5.5.330.0030.04320.43
5.5.320.0370.06320.20
5.5.310.0370.06720.38
5.5.300.0030.08317.95
5.5.290.0030.05017.99
5.5.280.0030.04020.87
5.5.270.0030.09020.87
5.5.260.0130.05020.87
5.5.250.0130.06720.77
5.5.240.0130.06020.16
5.4.450.0030.03719.55
5.4.440.0130.04319.18
5.4.430.0170.04019.40
5.4.420.0130.04319.32
5.4.410.0130.04319.30
5.4.400.0100.03719.24
5.4.390.0130.03719.06
5.4.380.0230.06318.70
5.4.370.0170.05018.61
5.4.360.0130.05318.58
5.4.350.0100.06018.59
5.4.340.0270.04718.78
5.4.320.0070.03512.50
5.4.310.0090.03912.50
5.4.300.0040.03912.50
5.4.290.0080.03612.50
5.4.280.0080.03512.39
5.4.270.0060.03612.40
5.4.260.0090.03812.40
5.4.250.0080.05012.39
5.4.240.0080.04212.40
5.4.230.0130.07412.38
5.4.220.0140.05712.38
5.4.210.0110.08012.39
5.4.200.0130.09512.39
5.4.190.0160.08512.39
5.4.180.0100.03612.39
5.4.170.0100.04712.39
5.4.160.0060.04412.39
5.4.150.0120.03812.39
5.4.140.0150.06312.07
5.4.130.0090.03512.06
5.4.120.0050.04012.02
5.4.110.0030.04112.01
5.4.100.0080.03512.01
5.4.90.0090.04112.01
5.4.80.0100.05012.02
5.4.70.0090.05212.01
5.4.60.0160.09312.01
5.4.50.0100.03912.01
5.4.40.0110.03912.00
5.4.30.0070.04111.99
5.4.20.0070.04111.99
5.4.10.0060.04012.00
5.4.00.0070.04411.48
5.3.290.0070.04412.80
5.3.280.0080.04112.71
5.3.270.0070.04012.72
5.3.260.0090.03912.72
5.3.250.0060.03712.72
5.3.240.0080.04012.71
5.3.230.0070.03812.71
5.3.220.0060.03712.68
5.3.210.0070.04212.68
5.3.200.0100.04712.68
5.3.190.0060.04112.68
5.3.180.0110.04412.68
5.3.170.0060.04212.67
5.3.160.0080.03512.68
5.3.150.0060.03812.67
5.3.140.0090.03412.66
5.3.130.0100.03512.66
5.3.120.0050.04012.66
5.3.110.0080.03812.65
5.3.100.0060.03912.12
5.3.90.0090.03812.10
5.3.80.0070.03912.09
5.3.70.0070.03612.09
5.3.60.0090.03412.08
5.3.50.0050.03712.03
5.3.40.0110.03312.03
5.3.30.0090.03311.98
5.3.20.0070.03711.76
5.3.10.0050.03911.73
5.3.00.0040.03911.72
5.2.170.0070.0319.22
5.2.160.0040.0379.22
5.2.150.0060.0389.22
5.2.140.0040.0389.22
5.2.130.0090.0299.18
5.2.120.0090.0319.18
5.2.110.0080.0359.18
5.2.100.0090.0399.18
5.2.90.0060.0869.18
5.2.80.0050.0309.18
5.2.70.0070.0359.18
5.2.60.0070.0379.13
5.2.50.0080.0319.10
5.2.40.0040.0339.08
5.2.30.0070.0299.05
5.2.20.0080.0369.04
5.2.10.0070.0288.95
5.2.00.0050.0308.81
5.1.60.0060.0298.09
5.1.50.0060.0588.09
5.1.40.0200.0648.07
5.1.30.0160.0538.42
5.1.20.0050.0398.44
5.1.10.0020.0308.16
5.1.00.0040.0368.16
5.0.50.0030.0256.64
5.0.40.0060.0186.50
5.0.30.0030.0326.32
5.0.20.0020.0226.28
5.0.10.0040.0226.26
5.0.00.0040.0326.25
4.4.90.0040.0164.78
4.4.80.0030.0174.75
4.4.70.0020.0174.75
4.4.60.0040.0164.75
4.4.50.0040.0174.77
4.4.40.0040.0264.71
4.4.30.0070.0134.76
4.4.20.0010.0194.84
4.4.10.0030.0234.84
4.4.00.0040.0274.76
4.3.110.0010.0194.66
4.3.100.0020.0164.66
4.3.90.0040.0144.64
4.3.80.0030.0254.59
4.3.70.0060.0154.63
4.3.60.0040.0154.62
4.3.50.0020.0194.63
4.3.40.0050.0234.54
4.3.30.0050.0163.31
4.3.20.0040.0243.28
4.3.10.0040.0163.24
4.3.00.0000.01351.93

preferences:
43.74 ms | 401 KiB | 5 Q