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 'Underscore: ' . $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.0060.00918.43
8.3.50.0070.00921.93
8.3.40.0040.01118.62
8.3.30.0120.00918.96
8.3.20.0040.00420.13
8.3.10.0000.00723.50
8.3.00.0040.00419.08
8.2.180.0120.00316.47
8.2.170.0170.00022.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00820.84
8.2.110.0030.00622.21
8.2.100.0000.01117.66
8.2.90.0000.01119.26
8.2.80.0090.00017.97
8.2.70.0030.00617.50
8.2.60.0080.00018.04
8.2.50.0040.00418.07
8.2.40.0020.00518.09
8.2.30.0050.00318.13
8.2.20.0030.00617.70
8.2.10.0040.00418.09
8.2.00.0000.00817.70
8.1.280.0070.01025.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00822.18
8.1.230.0080.00419.15
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0080.00021.92
8.1.150.0000.00718.64
8.1.140.0070.00317.44
8.1.130.0030.00317.81
8.1.120.0030.00317.38
8.1.110.0070.00017.41
8.1.100.0070.00017.47
8.1.90.0070.00017.51
8.1.80.0040.00417.48
8.1.70.0030.00617.35
8.1.60.0030.00617.47
8.1.50.0000.00817.42
8.1.40.0030.00617.42
8.1.30.0060.00317.58
8.1.20.0030.00617.50
8.1.10.0040.00417.60
8.1.00.0060.00317.55
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.34
8.0.270.0000.00717.26
8.0.260.0030.00317.26
8.0.250.0040.00416.97
8.0.240.0030.00516.98
8.0.230.0000.00716.98
8.0.220.0000.00716.92
8.0.210.0000.00716.79
8.0.200.0030.00316.96
8.0.190.0040.00416.98
8.0.180.0040.00416.80
8.0.170.0040.00416.81
8.0.160.0000.00716.90
8.0.150.0070.00016.89
8.0.140.0000.00716.69
8.0.130.0030.00613.36
8.0.120.0030.00516.73
8.0.110.0000.00716.72
8.0.100.0000.00816.89
8.0.90.0030.00516.92
8.0.80.0030.01216.86
8.0.70.0000.00716.96
8.0.60.0000.00716.72
8.0.50.0030.00516.77
8.0.30.0140.00517.09
8.0.20.0100.00817.40
8.0.10.0000.00716.95
8.0.00.0100.00716.61
7.4.330.0050.00015.14
7.4.320.0000.00616.43
7.4.300.0060.00316.58
7.4.290.0080.00016.59
7.4.280.0070.00316.54
7.4.270.0070.00016.51
7.4.260.0070.00016.60
7.4.250.0040.00416.57
7.4.240.0010.00616.52
7.4.230.0000.00716.39
7.4.220.0060.01216.53
7.4.210.0110.00416.69
7.4.200.0000.00716.35
7.4.190.0040.00416.46
7.4.160.0160.00016.64
7.4.150.0100.01017.40
7.4.140.0090.01117.86
7.4.130.0030.01316.48
7.4.120.0110.00816.57
7.4.110.0100.00716.57
7.4.100.0090.00916.47
7.4.90.0060.01216.66
7.4.80.0040.01419.39
7.4.70.0030.01416.54
7.4.60.0170.00016.51
7.4.50.0000.00816.18
7.4.40.0080.01216.50
7.4.30.0090.00616.30
7.4.10.0100.00314.76
7.4.00.0050.01214.91
7.3.330.0020.00213.36
7.3.320.0060.00013.37
7.3.310.0000.00716.41
7.3.300.0070.00016.13
7.3.290.0070.00716.33
7.3.280.0110.00616.26
7.3.270.0170.00017.40
7.3.260.0130.01016.52
7.3.250.0060.01116.24
7.3.240.0100.00716.60
7.3.230.0030.01816.39
7.3.210.0120.00416.31
7.3.200.0030.01319.39
7.3.190.0030.01516.55
7.3.180.0040.01016.36
7.3.170.0100.00716.30
7.3.160.0100.01316.23
7.3.130.0130.00714.96
7.3.120.0080.00614.77
7.3.110.0030.01414.68
7.3.100.0070.00714.72
7.3.90.0110.00715.00
7.3.80.0030.01315.04
7.3.70.0040.00814.81
7.3.60.0030.01014.61
7.3.50.0060.01014.57
7.3.40.0030.00914.88
7.3.30.0120.00314.88
7.3.20.0090.00316.52
7.3.10.0030.00616.56
7.3.00.0030.01016.79
7.2.330.0130.01016.85
7.2.320.0090.00916.89
7.2.310.0110.01116.44
7.2.300.0090.01216.70
7.2.290.0100.00716.88
7.2.260.0060.01314.93
7.2.250.0030.01614.88
7.2.240.0000.01315.30
7.2.230.0100.01014.91
7.2.220.0030.01015.24
7.2.210.0120.00015.31
7.2.200.0040.01114.97
7.2.190.0080.00815.23
7.2.180.0060.00915.07
7.2.170.0070.00715.06
7.2.160.0030.01015.29
7.2.150.0100.00016.89
7.2.140.0100.00317.12
7.2.130.0030.01416.84
7.2.120.0090.00316.95
7.2.110.0060.00316.73
7.2.100.0070.01117.10
7.2.90.0130.00617.05
7.2.80.0070.00916.79
7.2.70.0070.01016.84
7.2.60.0060.00917.13
7.2.50.0030.01016.71
7.2.40.0030.00617.08
7.2.30.0000.01816.69
7.2.20.0090.00617.02
7.2.10.0060.00316.86
7.2.00.0030.01418.26
7.1.330.0070.00715.62
7.1.320.0090.00915.92
7.1.310.0000.00815.70
7.1.300.0030.01115.85
7.1.290.0030.01015.89
7.1.280.0120.00616.00
7.1.270.0070.00315.66
7.1.260.0050.00515.73
7.1.250.0030.00715.50
7.1.240.0090.00615.93
7.1.230.0000.00815.90
7.1.220.0040.00415.84
7.1.210.0080.00815.57
7.1.200.0080.00515.77
7.1.190.0000.01015.49
7.1.180.0030.00615.64
7.1.170.0100.00315.86
7.1.160.0000.01015.78
7.1.150.0100.00715.91
7.1.140.0070.00315.81
7.1.130.0030.00615.64
7.1.120.0000.01415.53
7.1.110.0070.00315.88
7.1.100.0030.00916.94
7.1.90.0070.00715.87
7.1.80.0000.01015.86
7.1.70.0030.00716.52
7.1.60.0040.00817.71
7.1.50.0080.00916.39
7.1.40.0040.01115.73
7.1.30.0100.00715.88
7.1.20.0040.00815.80
7.1.10.0120.00315.88
7.1.00.0030.04319.18
7.0.330.0070.00715.14
7.0.320.0110.00715.62
7.0.310.0060.00315.09
7.0.300.0060.00915.41
7.0.290.0060.00615.51
7.0.280.0070.00715.16
7.0.270.0060.00615.27
7.0.260.0040.01115.24
7.0.250.0090.00315.48
7.0.240.0000.01115.12
7.0.230.0090.00015.37
7.0.220.0140.00015.43
7.0.210.0070.00715.36
7.0.200.0130.00715.95
7.0.190.0070.00715.32
7.0.180.0060.00315.45
7.0.170.0160.00015.33
7.0.160.0070.00715.47
7.0.150.0040.00715.56
7.0.140.0050.03818.78
7.0.130.0030.00715.64
7.0.120.0130.00015.52
7.0.110.0180.04817.78
7.0.100.0130.03517.78
7.0.90.0070.04717.78
7.0.80.0100.02517.69
7.0.70.0100.02517.79
7.0.60.0070.04517.64
7.0.50.0130.03817.80
7.0.40.0070.04516.52
7.0.30.0040.03016.64
7.0.20.0070.04216.59
7.0.10.0120.04016.52
7.0.00.0050.04116.50
5.6.400.0030.00714.43
5.6.390.0000.01514.27
5.6.380.0060.01014.32
5.6.370.0040.00814.35
5.6.360.0040.00714.02
5.6.350.0030.01014.39
5.6.340.0000.01714.09
5.6.330.0060.00614.34
5.6.320.0090.00614.57
5.6.310.0070.00713.98
5.6.300.0060.01314.70
5.6.290.0060.00614.32
5.6.280.0020.04517.68
5.6.270.0060.00614.39
5.6.260.0080.04417.36
5.6.250.0100.02617.50
5.6.240.0070.02417.64
5.6.230.0030.03517.60
5.6.220.0080.03517.55
5.6.210.0080.04017.39
5.6.200.0120.04017.42
5.6.190.0040.02817.43
5.6.180.0080.03117.43
5.6.170.0030.04117.35
5.6.160.0080.04217.63
5.6.150.0050.02717.39
5.6.140.0040.03717.43
5.6.130.0040.02917.55
5.6.120.0080.02417.44
5.6.110.0030.04317.61
5.6.100.0080.04017.53
5.6.90.0050.02917.40
5.6.80.0080.03717.03
5.6.70.0050.04517.05
5.6.60.0070.04417.17
5.6.50.0000.04917.13
5.6.40.0170.03316.97
5.6.30.0050.04717.05
5.6.20.0050.04317.10
5.6.10.0040.04617.08
5.6.00.0060.03316.95
5.5.380.0070.03716.11
5.5.370.0070.02515.95
5.5.360.0080.02215.81
5.5.350.0070.03616.21
5.5.340.0070.04515.97
5.5.330.0060.02815.92
5.5.320.0030.02616.19
5.5.310.0050.03016.14
5.5.300.0050.04116.22
5.5.290.0050.04616.14
5.5.280.0020.05016.34
5.5.270.0050.04515.92
5.5.260.0030.02516.03
5.5.250.0100.02216.01
5.5.240.0020.02616.01
5.5.230.0110.03815.63
5.5.220.0120.02515.97
5.5.210.0010.04015.84
5.5.200.0080.03515.90
5.5.190.0050.03615.71
5.5.180.0050.04315.64
5.5.170.0080.00314.29
5.5.160.0040.04615.70
5.5.150.0070.04715.87
5.5.140.0020.02915.67
5.5.130.0020.03715.70
5.5.120.0050.02815.54
5.5.110.0110.04315.83
5.5.100.0130.03315.73
5.5.90.0130.02815.56
5.5.80.0040.03515.90
5.5.70.0090.03515.85
5.5.60.0040.03915.70
5.5.50.0090.03815.67
5.5.40.0050.02615.85
5.5.30.0070.02715.76
5.5.20.0110.02815.71
5.5.10.0090.02615.76
5.5.00.0020.03315.85
5.4.450.0080.03815.33
5.4.440.0080.04015.27
5.4.430.0060.04315.28
5.4.420.0050.04015.25
5.4.410.0070.02015.30
5.4.400.0080.04015.07
5.4.390.0100.03715.07
5.4.380.0060.02615.02
5.4.370.0030.04414.86
5.4.360.0070.03815.23
5.4.350.0030.03015.11
5.4.340.0020.04615.14
5.4.330.0040.00710.82
5.4.320.0050.04315.08
5.4.310.0050.02715.19
5.4.300.0020.04414.99
5.4.290.0040.02515.11
5.4.280.0030.03114.99
5.4.270.0030.04015.01
5.4.260.0150.02415.17
5.4.250.0000.03115.00
5.4.240.0100.03315.18
5.4.230.0020.04714.89
5.4.220.0070.03014.87
5.4.210.0050.03415.18
5.4.200.0030.02314.86
5.4.190.0030.02614.97
5.4.180.0080.03614.96
5.4.170.0100.02215.03
5.4.160.0030.02315.09
5.4.150.0080.02015.11
5.4.140.0020.02313.67
5.4.130.0000.02713.77
5.4.120.0080.01713.85
5.4.110.0030.03013.60
5.4.100.0070.02713.81
5.4.90.0050.03713.83
5.4.80.0050.02813.74
5.4.70.0030.03813.71
5.4.60.0050.03213.79
5.4.50.0070.02713.71
5.4.40.0020.03413.75
5.4.30.0080.03313.82
5.4.20.0050.02213.66
5.4.10.0050.03513.70
5.4.00.0030.03613.37
5.3.290.0050.04212.66
5.3.280.0070.03312.49
5.3.270.0030.02312.62
5.3.260.0020.02712.71
5.3.250.0050.02212.68
5.3.240.0030.02112.41
5.3.230.0020.04512.41
5.3.220.0050.03012.39
5.3.210.0050.04112.50
5.3.200.0020.03112.55
5.3.190.0070.02412.66
5.3.180.0050.03912.69
5.3.170.0090.01712.53
5.3.160.0050.04012.41
5.3.150.0020.03212.61
5.3.140.0050.02212.63
5.3.130.0070.02012.58
5.3.120.0040.04112.44
5.3.110.0030.03312.68
5.3.100.0010.04412.44
5.3.90.0050.04012.31
5.3.80.0090.03212.37
5.3.70.0030.03712.33
5.3.60.0020.04212.33
5.3.50.0050.04112.30
5.3.40.0070.04212.25
5.3.30.0030.02512.30
5.3.20.0070.02212.06
5.3.10.0090.03512.06
5.3.00.0070.04412.00
5.2.170.0030.05711.92
5.2.160.0030.03011.92
5.2.150.0030.04011.92
5.2.140.0100.03711.92
5.2.130.0100.03311.92
5.2.120.0030.03311.92
5.2.110.0070.06311.92
5.2.100.0100.03011.92
5.2.90.0030.04011.92
5.2.80.0030.05711.92
5.2.70.0130.05311.92
5.2.60.0030.04711.92
5.2.50.0000.05711.92
5.2.40.0030.06711.92
5.2.30.0030.03311.92
5.2.20.0070.03011.92
5.2.10.0030.03011.92
5.2.00.0130.03311.92
5.1.60.0030.03011.92
5.1.50.0030.03011.92
5.1.40.0000.03011.92
5.1.30.0000.03011.92
5.1.20.0130.05011.92
5.1.10.0030.04011.92
5.1.00.0030.03011.92
5.0.50.0070.04311.92
5.0.40.0000.02311.92
5.0.30.0030.05711.92
5.0.20.0000.02711.92
5.0.10.0000.02311.92
5.0.00.0000.04011.92
4.4.90.0000.02311.92
4.4.80.0000.03011.92
4.4.70.0030.03011.92
4.4.60.0030.01711.92
4.4.50.0030.01711.92
4.4.40.0030.05011.92
4.4.30.0000.01711.92
4.4.20.0000.03311.92
4.4.10.0030.04011.92
4.4.00.0030.05711.92
4.3.110.0070.03311.92
4.3.100.0030.02011.92
4.3.90.0000.02711.92
4.3.80.0000.02711.92
4.3.70.0000.03311.92
4.3.60.0000.01711.92
4.3.50.0100.02711.92
4.3.40.0000.05311.92
4.3.30.0000.02011.92
4.3.20.0030.03311.92
4.3.10.0030.01311.92
4.3.00.0000.01311.92

preferences:
66.69 ms | 401 KiB | 5 Q