3v4l.org

run code in 300+ PHP versions simultaneously
<?php class P { public function test_prop($prop) { return property_exists($this, $prop); } } class Child extends P { private $prop1; } $child = new Child(); echo $child->test_prop('prop1') ? 'Yes' : 'No';

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.0110.00718.43
8.3.50.0090.00821.13
8.3.40.0040.01118.70
8.3.30.0130.00020.38
8.3.20.0070.00020.04
8.3.10.0050.00221.95
8.3.00.0080.00022.48
8.2.180.0060.00818.54
8.2.170.0040.01122.96
8.2.160.0030.01020.38
8.2.150.0040.00424.18
8.2.140.0130.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00319.54
8.2.110.0070.00322.13
8.2.100.0060.00617.72
8.2.90.0080.00017.84
8.2.80.0060.00617.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0000.00718.22
8.2.30.0030.00718.08
8.2.20.0060.00317.70
8.2.10.0040.00417.64
8.2.00.0080.00417.55
8.1.280.0070.01425.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.24
8.1.230.0000.01120.85
8.1.220.0040.00417.74
8.1.210.0040.00418.91
8.1.200.0030.00617.23
8.1.190.0040.00417.43
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0000.00722.19
8.1.150.0040.00418.48
8.1.140.0000.00717.38
8.1.130.0000.00717.73
8.1.120.0000.00817.37
8.1.110.0030.00517.39
8.1.100.0040.00417.27
8.1.90.0030.00517.45
8.1.80.0040.00417.44
8.1.70.0030.00317.37
8.1.60.0030.00617.59
8.1.50.0040.00417.45
8.1.40.0060.00317.54
8.1.30.0000.00817.66
8.1.20.0060.00317.60
8.1.10.0000.00817.50
8.1.00.0000.00817.53
8.0.300.0000.00819.84
8.0.290.0090.00017.18
8.0.280.0000.00718.50
8.0.270.0000.00817.24
8.0.260.0040.00416.81
8.0.250.0030.00316.90
8.0.240.0070.00016.92
8.0.230.0040.00416.93
8.0.220.0030.00316.73
8.0.210.0000.00716.78
8.0.200.0030.00316.88
8.0.190.0050.00316.88
8.0.180.0050.00316.75
8.0.170.0030.00616.86
8.0.160.0000.00716.79
8.0.150.0050.00216.80
8.0.140.0000.00716.67
8.0.130.0030.00313.24
8.0.120.0040.00416.69
8.0.110.0040.00416.83
8.0.100.0000.00816.85
8.0.90.0030.00516.70
8.0.80.0130.00316.84
8.0.70.0040.00416.86
8.0.60.0070.00016.64
8.0.50.0000.00816.68
8.0.30.0090.01117.01
8.0.20.0150.00717.40
8.0.10.0040.00416.80
8.0.00.0110.01016.71
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0030.00316.60
7.4.290.0030.00516.52
7.4.280.0020.00516.45
7.4.270.0030.00616.58
7.4.260.0030.00316.48
7.4.250.0080.00016.52
7.4.240.0040.00316.55
7.4.230.0060.00016.49
7.4.220.0090.00616.59
7.4.210.0090.00616.58
7.4.200.0050.00316.41
7.4.190.0000.00716.45
7.4.160.0100.00616.42
7.4.150.0130.00317.40
7.4.140.0120.00617.86
7.4.130.0120.00716.40
7.4.120.0100.00816.36
7.4.110.0130.00316.64
7.4.100.0160.00316.43
7.4.90.0070.01716.53
7.4.80.0050.01119.39
7.4.70.0100.00616.43
7.4.60.0180.01416.58
7.4.50.0030.00316.62
7.4.40.0060.01222.77
7.4.30.0090.00616.52
7.4.00.0070.00715.06
7.3.330.0000.00513.09
7.3.320.0020.00213.09
7.3.310.0030.00516.25
7.3.300.0030.00316.21
7.3.290.0090.01016.19
7.3.280.0130.00316.21
7.3.270.0140.00817.40
7.3.260.0150.00316.30
7.3.250.0090.00816.17
7.3.240.0120.00616.26
7.3.230.0030.01316.47
7.3.210.0130.00316.36
7.3.200.0120.01119.39
7.3.190.0140.00316.09
7.3.180.0080.00816.40
7.3.170.0060.01216.37
7.3.160.0100.00716.21
7.3.120.0170.00014.80
7.3.10.0120.00316.60
7.3.00.0080.00616.54
7.2.330.0140.00516.54
7.2.320.0030.01416.70
7.2.310.0130.00616.75
7.2.300.0090.01516.76
7.2.290.0120.00616.61
7.2.130.0080.00417.04
7.2.120.0000.01516.85
7.2.110.0110.00416.79
7.2.100.0060.00616.94
7.2.90.0060.00916.96
7.2.80.0080.01016.66
7.2.70.0130.01616.58
7.2.60.0150.00916.93
7.2.50.0030.01517.00
7.2.40.0110.00416.89
7.2.30.0100.00316.77
7.2.20.0100.00316.90
7.2.10.0030.01016.84
7.2.00.0110.00618.26
7.1.250.0110.00015.77
7.1.100.0060.00618.00
7.1.70.0040.01117.19
7.1.60.0000.01419.21
7.1.50.0030.01616.83
7.1.00.0070.04022.48
7.0.200.0580.00614.96
7.0.140.0070.07321.97
7.0.60.0170.06319.91
7.0.50.0100.07017.90
7.0.40.0100.08720.11
7.0.30.0270.06320.30
7.0.20.0130.04320.23
7.0.10.0430.06720.06
7.0.00.0170.07320.23
5.6.280.0000.07721.10
5.6.210.0170.07020.73
5.6.200.0070.08718.23
5.6.190.0130.08320.46
5.6.180.0300.06720.55
5.6.170.0370.03720.54
5.6.160.0030.04320.56
5.6.150.0030.06318.17
5.6.140.0030.08318.18
5.6.130.0000.08718.17
5.6.120.0030.04021.04
5.6.110.0070.05721.02
5.6.100.0130.03320.98
5.6.90.0030.09321.11
5.6.80.0170.05020.41
5.5.350.0070.04020.45
5.5.340.0100.08018.01
5.5.330.0070.04020.29
5.5.320.0230.03020.49
5.5.310.0400.06320.51
5.5.300.0100.08017.95
5.5.290.0130.03717.95
5.5.280.0100.07720.68
5.5.270.0070.03720.84
5.5.260.0070.08020.64
5.5.250.0070.07720.69
5.5.240.0130.04720.13
5.4.450.0570.05319.69
5.4.440.0630.05319.73
5.4.430.0930.07019.46
5.4.420.0400.06019.30
5.4.410.1100.05319.23
5.4.400.0370.07318.63
5.4.390.0470.05718.57
5.4.380.0200.05718.47
5.4.370.0070.05718.61
5.4.360.0200.04718.53
5.4.350.0050.04012.02
5.4.340.0040.03712.02
5.4.320.0070.03812.50
5.4.310.0020.04212.50
5.4.300.0040.03812.50
5.4.290.0090.03412.50
5.4.280.0080.03912.39
5.4.270.0060.04912.39
5.4.260.0070.03812.39
5.4.250.0130.07018.92
5.4.240.0170.06719.00
5.4.230.0030.06719.00
5.4.220.0070.05718.74
5.4.210.0070.05719.02
5.4.200.0070.05318.94
5.4.190.0070.06018.96
5.4.180.0100.07318.88
5.4.170.0030.07018.72
5.4.160.0070.05318.63
5.4.150.0030.05718.88
5.4.140.0070.05316.64
5.4.130.0130.04316.40
5.4.120.0070.05016.46
5.4.110.0100.05016.52
5.4.100.0100.04716.48
5.4.90.0070.05316.66
5.4.80.0070.05316.35
5.4.70.0170.07016.44
5.4.60.0230.05316.58
5.4.50.0230.05716.44
5.4.40.0170.04316.57
5.4.30.0070.05016.45
5.4.20.0100.04716.51
5.4.10.0100.05316.28
5.4.00.0130.05016.04
5.3.290.0040.04312.80
5.3.280.0030.07314.73
5.3.270.0030.05714.58
5.3.260.0070.05014.59
5.3.250.0130.07014.74
5.3.240.0130.04314.66
5.3.230.0130.06314.58
5.3.220.0070.05714.74
5.3.210.0030.08314.65
5.3.200.0070.05014.55
5.3.190.0070.05314.39
5.3.180.0130.07014.65
5.3.170.0100.05714.78
5.3.160.0070.05314.39
5.3.150.0100.05014.64
5.3.140.0130.05014.61
5.3.130.0130.05014.68
5.3.120.0070.05314.77
5.3.110.0100.05014.61
5.3.100.0000.07314.21
5.3.90.0170.04714.10
5.3.80.0070.05314.09
5.3.70.0000.06014.19
5.3.60.0030.07014.02
5.3.50.0070.06013.79
5.3.40.0170.04313.95
5.3.30.0100.05013.98
5.3.20.0100.05013.68
5.3.10.0100.04313.69
5.3.00.0100.06013.72
5.2.170.0030.04311.11
5.2.160.0030.05711.21
5.2.150.0000.06711.21
5.2.140.0100.04011.09
5.2.130.0000.04311.00
5.2.120.0070.04311.18
5.2.110.0100.05011.18
5.2.100.0100.03711.18
5.2.90.0100.05311.11
5.2.80.0070.04311.18
5.2.70.0000.05311.08
5.2.60.0100.04011.04
5.2.50.0030.04311.12
5.2.40.0070.04011.08
5.2.30.0100.03711.04
5.2.20.0070.03711.12
5.2.10.0070.05310.94
5.2.00.0070.04010.70
5.1.60.0100.0279.95
5.1.50.0030.0339.99
5.1.40.0100.0309.98
5.1.30.0070.03310.28
5.1.20.0130.04710.33
5.1.10.0000.04310.04
5.1.00.0000.05710.06
5.0.50.0030.0308.74
5.0.40.0000.0308.60
5.0.30.0030.0438.20
5.0.20.0000.0408.26
5.0.10.0030.0278.36
5.0.00.0070.0407.99
4.4.90.0070.0177.41
4.4.80.0000.0237.41
4.4.70.0000.0237.41
4.4.60.0070.0177.41
4.4.50.0000.0237.41
4.4.40.0000.0377.41
4.4.30.0000.0237.41
4.4.20.0000.0277.41
4.4.10.0000.0237.41
4.4.00.0000.0377.41
4.3.110.0070.0237.41
4.3.100.0100.0237.41
4.3.90.0000.0237.41
4.3.80.0070.0277.41
4.3.70.0100.0137.41
4.3.60.0030.0277.41
4.3.50.0000.0277.41
4.3.40.0000.0337.41
4.3.30.0030.0237.41
4.3.20.0030.0277.41
4.3.10.0030.0207.41
4.3.00.0000.0236.33

preferences:
39.94 ms | 401 KiB | 5 Q