3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __get($prop) { echo 'Base: ' . $prop; } } class bar extends foo { function __get($prop) { if (strpos('_', $prop) === false) { parent::__get($prop); } else { echo 'Extended: ' . $prop; } } } $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.0040.01116.50
8.3.50.0120.00622.05
8.3.40.0150.00018.70
8.3.30.0100.00318.96
8.3.20.0070.00020.39
8.3.10.0040.00423.61
8.3.00.0040.00419.19
8.2.180.0040.01516.38
8.2.170.0040.01122.96
8.2.160.0130.00320.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0020.00520.91
8.2.110.0050.00522.11
8.2.100.0110.00017.84
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00517.91
8.2.50.0000.00818.07
8.2.40.0100.00019.95
8.2.30.0000.00818.13
8.2.20.0030.00517.78
8.2.10.0040.00418.07
8.2.00.0040.00417.74
8.1.280.0070.00725.92
8.1.270.0000.00823.84
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0040.00423.91
8.1.230.0070.00418.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0080.00318.25
8.1.160.0050.00221.89
8.1.150.0000.00718.54
8.1.140.0080.00417.29
8.1.130.0030.00617.71
8.1.120.0030.00317.34
8.1.110.0050.00217.30
8.1.100.0040.00417.47
8.1.90.0000.00717.32
8.1.80.0030.00317.39
8.1.70.0000.00717.36
8.1.60.0090.00017.64
8.1.50.0000.00817.59
8.1.40.0050.00517.47
8.1.30.0000.00917.57
8.1.20.0050.00217.70
8.1.10.0040.00417.54
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0000.00917.03
8.0.280.0080.00018.45
8.0.270.0070.00017.18
8.0.260.0000.00617.27
8.0.250.0000.00716.90
8.0.240.0000.00716.82
8.0.230.0000.00716.93
8.0.220.0030.00516.88
8.0.210.0030.00316.88
8.0.200.0030.00317.02
8.0.190.0040.00416.84
8.0.180.0050.00216.83
8.0.170.0000.00916.80
8.0.160.0000.00716.97
8.0.150.0000.00716.91
8.0.140.0040.00416.92
8.0.130.0040.00413.29
8.0.120.0080.00016.80
8.0.110.0080.00016.74
8.0.100.0030.00316.88
8.0.90.0080.00016.69
8.0.80.0040.01116.82
8.0.70.0050.00216.65
8.0.60.0000.00716.73
8.0.50.0000.00816.86
8.0.30.0080.01017.17
8.0.20.0140.00517.41
8.0.10.0000.00716.82
8.0.00.0100.00716.84
7.4.330.0020.00215.10
7.4.320.0060.00016.50
7.4.300.0000.00816.43
7.4.290.0000.00716.50
7.4.280.0070.00416.52
7.4.270.0030.00616.46
7.4.260.0050.00216.47
7.4.250.0070.00016.58
7.4.240.0040.00316.57
7.4.230.0000.00716.61
7.4.220.0060.01216.71
7.4.210.0070.00716.70
7.4.200.0040.00416.61
7.4.190.0070.00016.56
7.4.160.0100.00716.28
7.4.150.0130.00717.40
7.4.140.0090.00917.86
7.4.130.0060.01016.50
7.4.120.0110.00516.42
7.4.110.0110.01116.57
7.4.100.0090.00916.59
7.4.90.0150.00616.44
7.4.80.0100.01719.39
7.4.70.0130.01016.59
7.4.60.0030.01316.48
7.4.50.0000.00416.50
7.4.40.0100.01016.59
7.4.30.0030.01416.56
7.4.10.0120.00614.64
7.4.00.0070.00815.00
7.3.330.0080.00013.30
7.3.320.0000.00513.01
7.3.310.0000.00716.34
7.3.300.0030.00316.17
7.3.290.0110.00316.27
7.3.280.0060.01316.30
7.3.270.0130.00617.40
7.3.260.0030.01416.48
7.3.250.0130.00416.41
7.3.240.0070.01016.38
7.3.230.0080.00816.39
7.3.210.0140.00316.29
7.3.200.0100.01019.39
7.3.190.0030.01316.41
7.3.180.0150.00616.18
7.3.170.0100.00716.36
7.3.160.0090.00616.36
7.3.130.0060.01314.84
7.3.120.0030.00914.82
7.3.110.0060.01214.64
7.3.100.0040.01114.82
7.3.90.0000.01114.79
7.3.80.0070.00414.51
7.3.70.0100.00314.86
7.3.60.0100.00314.73
7.3.50.0080.00814.73
7.3.40.0040.00714.78
7.3.30.0040.00414.70
7.3.20.0040.01116.51
7.3.10.0050.00516.52
7.3.00.0090.00016.58
7.2.330.0090.00916.82
7.2.320.0060.01316.73
7.2.310.0070.01116.79
7.2.300.0100.00716.64
7.2.290.0140.00716.76
7.2.260.0110.00715.00
7.2.250.0070.01015.00
7.2.240.0030.00914.86
7.2.230.0000.01015.14
7.2.220.0070.00715.11
7.2.210.0000.01314.93
7.2.200.0050.00515.12
7.2.190.0040.01115.04
7.2.180.0080.00414.95
7.2.170.0060.00314.99
7.2.160.0030.01015.17
7.2.150.0000.00916.51
7.2.140.0050.00516.97
7.2.130.0090.00016.63
7.2.120.0060.00916.78
7.2.110.0000.01216.97
7.2.100.0030.00916.92
7.2.90.0080.00417.02
7.2.80.0030.01216.91
7.2.70.0060.00616.91
7.2.60.0040.01116.99
7.2.50.0030.01216.95
7.2.40.0090.00316.81
7.2.30.0030.01216.92
7.2.20.0120.00616.78
7.2.10.0060.01017.14
7.2.00.0020.01118.22
7.1.330.0110.00315.73
7.1.320.0040.00715.69
7.1.310.0030.00915.73
7.1.300.0000.01315.57
7.1.290.0040.00715.68
7.1.280.0060.00915.72
7.1.270.0090.00615.60
7.1.260.0030.00915.94
7.1.250.0040.01115.71
7.1.240.0090.00015.70
7.1.230.0060.00615.66
7.1.220.0030.00915.73
7.1.210.0090.00615.78
7.1.200.0120.00315.60
7.1.190.0070.00715.79
7.1.180.0100.00715.39
7.1.170.0100.00715.91
7.1.160.0040.01115.63
7.1.150.0070.00715.93
7.1.140.0140.00415.85
7.1.130.0040.00815.78
7.1.120.0100.00315.45
7.1.110.0040.01115.84
7.1.100.0060.00716.81
7.1.90.0100.00315.52
7.1.80.0080.00315.86
7.1.70.0080.00416.47
7.1.60.0080.00516.27
7.1.50.0060.00616.41
7.1.40.0020.01116.03
7.1.30.0080.00716.34
7.1.20.0050.01316.30
7.1.10.0030.00616.21
7.1.00.0020.01616.11
7.0.330.0000.01515.46
7.0.320.0060.00615.50
7.0.310.0040.00415.13
7.0.300.0040.00715.18
7.0.290.0040.01115.36
7.0.280.0090.00615.48
7.0.270.0030.00915.38
7.0.260.0100.00315.54
7.0.250.0070.00315.21
7.0.240.0000.01215.37
7.0.230.0090.00315.48
7.0.220.0090.00615.55
7.0.210.0060.00915.20
7.0.200.0040.00415.89
7.0.190.0030.00716.16
7.0.180.0040.00615.89
7.0.170.0050.00715.82
7.0.160.0000.00915.97
7.0.150.0050.00615.91
7.0.140.0020.01115.71
7.0.130.0070.00416.16
7.0.120.0030.00615.81
7.0.110.0090.00215.98
7.0.100.0020.00815.99
7.0.90.0030.00715.87
7.0.80.0050.00716.01
7.0.70.0030.00516.05
7.0.60.0030.01015.75
7.0.50.0020.01115.92
7.0.40.0060.00514.36
7.0.30.0050.00614.36
7.0.20.0050.00614.19
7.0.10.0030.00714.36
7.0.00.0070.00514.36
5.6.400.0030.01014.32
5.6.390.0000.01414.25
5.6.380.0070.00313.93
5.6.370.0030.01014.30
5.6.360.0070.00314.06
5.6.350.0070.00714.48
5.6.340.0000.01514.54
5.6.330.0100.00313.92
5.6.320.0000.00914.10
5.6.310.0060.01014.49
5.6.300.0050.02317.59
5.6.290.0070.02917.59
5.6.280.0050.03217.70
5.6.270.0040.02817.71
5.6.260.0060.01917.80
5.6.250.0020.02717.55
5.6.240.0090.02517.67
5.6.230.0020.03317.50
5.6.220.0050.02817.65
5.6.210.0040.02517.68
5.6.200.0030.02917.68
5.6.190.0080.02617.51
5.6.180.0110.03617.51
5.6.170.0070.02317.60
5.6.160.0030.02817.48
5.6.150.0070.02517.41
5.6.140.0040.02417.49
5.6.130.0060.04517.60
5.6.120.0050.02517.69
5.6.110.0050.04017.59
5.6.100.0100.03717.68
5.6.90.0050.02217.66
5.6.80.0090.01917.20
5.6.70.0100.02217.27
5.6.60.0070.04417.16
5.6.50.0080.02617.17
5.6.40.0070.02517.28
5.6.30.0070.02117.12
5.6.20.0050.02517.35
5.6.10.0000.03017.19
5.6.00.0020.02917.15
5.5.380.0050.02415.96
5.5.370.0030.03715.84
5.5.360.0000.04115.92
5.5.350.0030.02615.77
5.5.340.0030.02516.05
5.5.330.0040.03516.04
5.5.320.0060.02116.13
5.5.310.0050.02416.05
5.5.300.0050.03516.12
5.5.290.0030.05016.11
5.5.280.0080.02116.08
5.5.270.0050.03716.10
5.5.260.0060.02716.08
5.5.250.0050.02316.15
5.5.240.0000.03415.91
5.5.230.0020.02915.73
5.5.220.0020.04215.75
5.5.210.0050.02315.70
5.5.200.0070.02315.58
5.5.190.0060.02115.82
5.5.180.0020.02615.71
5.5.170.0060.01213.93
5.5.160.0050.02315.63
5.5.150.0050.02415.45
5.5.140.0000.02515.45
5.5.130.0030.04315.55
5.5.120.0020.02615.61
5.5.110.0030.02915.74
5.5.100.0020.02415.62
5.5.90.0050.03515.62
5.5.80.0030.03015.75
5.5.70.0060.02815.62
5.5.60.0050.02215.60
5.5.50.0020.02915.79
5.5.40.0080.03515.49
5.5.30.0080.02215.77
5.5.20.0050.02215.78
5.5.10.0030.04515.82
5.5.00.0000.02815.61
5.4.450.0030.03316.25
5.4.440.0050.02816.29
5.4.430.0070.04216.21
5.4.420.0070.02116.36
5.4.410.0070.02416.30
5.4.400.0030.02716.13
5.4.390.0000.02916.11
5.4.380.0070.03616.12
5.4.370.0050.03016.15
5.4.360.0070.02416.11
5.4.350.0060.02316.15
5.4.340.0050.02116.13
5.4.330.0060.00613.18
5.4.320.0050.02316.16
5.4.310.0100.02216.19
5.4.300.0030.01916.21
5.4.290.0080.01816.08
5.4.280.0020.03516.05
5.4.270.0070.02916.14
5.4.260.0020.02416.11
5.4.250.0020.02516.13
5.4.240.0060.02416.20
5.4.230.0000.02516.12
5.4.220.0060.04116.04
5.4.210.0020.02316.15
5.4.200.0070.02116.08
5.4.190.0000.03116.14
5.4.180.0060.01916.17
5.4.170.0030.02116.08
5.4.160.0050.01916.07
5.4.150.0100.02516.12
5.4.140.0020.04114.98
5.4.130.0030.03514.84
5.4.120.0050.03814.90
5.4.110.0080.02314.86
5.4.100.0060.04414.99
5.4.90.0020.02214.98
5.4.80.0030.01914.98
5.4.70.0050.01814.85
5.4.60.0070.02914.93
5.4.50.0030.02214.93
5.4.40.0040.01914.98
5.4.30.0020.02814.93
5.4.20.0020.03014.93
5.4.10.0030.02514.93
5.4.00.0030.02214.54
5.3.290.0050.02514.18
5.3.280.0030.02314.18
5.3.270.0020.02814.18
5.3.260.0050.02214.18
5.3.250.0020.03014.18
5.3.240.0050.03214.18
5.3.230.0000.02814.18
5.3.220.0070.03914.18
5.3.210.0030.02214.18
5.3.200.0030.02114.18
5.3.190.0000.02514.18
5.3.180.0030.02214.18
5.3.170.0060.01914.18
5.3.160.0020.02814.18
5.3.150.0060.03314.18
5.3.140.0020.02314.18
5.3.130.0030.03314.18
5.3.120.0060.02014.18
5.3.110.0020.02514.18
5.3.100.0050.02014.18
5.3.90.0030.02514.18
5.3.80.0040.02414.18
5.3.70.0020.02814.18
5.3.60.0020.02114.18
5.3.50.0020.02014.18
5.3.40.0010.02114.18
5.3.30.0050.01714.18
5.3.20.0020.02114.18
5.3.10.0060.02014.18
5.3.00.0030.02114.18
5.2.170.0000.04015.18
5.2.160.0000.03315.18
5.2.150.0000.03215.18
5.2.140.0090.02215.18
5.2.130.0030.03115.18
5.2.120.0000.03015.18
5.2.110.0030.05715.18
5.2.100.0000.03215.18
5.2.90.0070.02615.18
5.2.80.0000.03315.18
5.2.70.0100.02915.18
5.2.60.0000.03415.18
5.2.50.0030.03015.18
5.2.40.0000.03115.18
5.2.30.0100.02015.18
5.2.20.0000.03015.18
5.2.10.0000.06215.18
5.2.00.0000.03415.18
5.1.60.0000.03415.18
5.1.50.0030.03015.18
5.1.40.0000.02815.18
5.1.30.0070.02315.18
5.1.20.0030.02615.18
5.1.10.0000.02815.18
5.1.00.0000.02715.18
5.0.50.0000.02315.18
5.0.40.0000.02215.18
5.0.30.0030.03015.18
5.0.20.0000.02115.18
5.0.10.0000.02115.18
5.0.00.0070.02715.18
4.4.90.0030.01415.18
4.4.80.0030.01315.18
4.4.70.0000.01915.18
4.4.60.0030.02415.18
4.4.50.0030.02215.18
4.4.40.0030.02215.18
4.4.30.0030.01315.18
4.4.20.0030.01815.18
4.4.10.0000.03715.18
4.4.00.0070.02015.18
4.3.110.0030.02115.18
4.3.100.0030.01315.18
4.3.90.0000.01715.18
4.3.80.0000.02615.18
4.3.70.0030.01315.18
4.3.60.0000.01615.18
4.3.50.0000.01615.18
4.3.40.0000.03315.18
4.3.30.0030.01415.18
4.3.20.0000.02815.18
4.3.10.0000.01815.18
4.3.00.0000.01715.18

preferences:
48.44 ms | 401 KiB | 5 Q