3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { function id() { var_dump($this instanceof ChildClass); } } class ChildClass extends ParentClass { } $x = new ChildClass; $x->id();

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.0070.00718.43
8.3.50.0140.00822.01
8.3.40.0100.01018.40
8.3.30.0110.00418.91
8.3.20.0120.00320.26
8.3.10.0000.00822.13
8.3.00.0040.00422.41
8.2.180.0140.00716.50
8.2.170.0070.00722.96
8.2.160.0140.00020.76
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0000.00822.15
8.2.100.0040.00817.63
8.2.90.0050.00319.08
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0060.00318.04
8.2.50.0090.00018.07
8.2.40.0050.00317.78
8.2.30.0040.00418.04
8.2.20.0040.00417.57
8.2.10.0070.00017.66
8.2.00.0050.00317.61
8.1.280.0180.00425.92
8.1.270.0070.00023.87
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0090.00023.82
8.1.230.0080.00419.07
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0040.00717.22
8.1.190.0050.00317.29
8.1.180.0000.00918.10
8.1.170.0000.00818.65
8.1.160.0000.00721.93
8.1.150.0040.00418.67
8.1.140.0040.00417.31
8.1.130.0000.00717.81
8.1.120.0050.00317.29
8.1.110.0000.00817.36
8.1.100.0050.00517.43
8.1.90.0000.00717.29
8.1.80.0050.00317.40
8.1.70.0070.00017.35
8.1.60.0090.00017.52
8.1.50.0040.00417.38
8.1.40.0000.00817.49
8.1.30.0030.00517.46
8.1.20.0040.00417.64
8.1.10.0000.00717.52
8.1.00.0060.00317.46
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0030.00518.29
8.0.270.0000.00717.25
8.0.260.0060.00016.75
8.0.250.0030.00316.89
8.0.240.0040.00416.92
8.0.230.0030.00316.90
8.0.220.0000.00716.85
8.0.210.0030.00516.69
8.0.200.0000.00616.74
8.0.190.0060.00316.84
8.0.180.0000.01016.90
8.0.170.0030.00516.72
8.0.160.0050.00516.84
8.0.150.0040.00416.66
8.0.140.0030.00416.78
8.0.130.0030.00313.21
8.0.120.0030.00516.75
8.0.110.0000.00716.77
8.0.100.0040.00416.82
8.0.90.0000.00716.76
8.0.80.0140.00016.75
8.0.70.0040.00416.76
8.0.60.0040.00416.76
8.0.50.0040.00416.69
8.0.30.0060.01317.12
8.0.20.0050.01317.40
8.0.10.0000.00716.97
8.0.00.0100.01016.64
7.4.330.0050.00015.02
7.4.320.0060.00016.45
7.4.300.0040.00416.49
7.4.290.0030.00316.47
7.4.280.0030.00316.61
7.4.270.0030.00316.59
7.4.260.0000.00716.43
7.4.250.0000.00716.55
7.4.240.0000.00716.50
7.4.230.0030.00316.33
7.4.220.0070.01016.49
7.4.210.0080.00816.58
7.4.200.0030.00316.29
7.4.190.0050.00216.74
7.4.160.0090.00616.57
7.4.150.0180.00717.40
7.4.140.0160.00417.86
7.4.130.0110.00816.59
7.4.120.0120.00516.53
7.4.110.0130.00416.63
7.4.100.0140.00316.40
7.4.90.0070.01116.51
7.4.80.0100.00819.39
7.4.70.0060.00916.44
7.4.60.0170.00316.34
7.4.50.0060.00316.34
7.4.40.0030.01022.77
7.4.30.0060.01016.41
7.4.00.0100.00514.79
7.3.330.0050.00013.25
7.3.320.0000.00513.21
7.3.310.0080.00016.27
7.3.300.0000.00716.20
7.3.290.0090.00616.28
7.3.280.0070.01016.23
7.3.270.0200.00317.40
7.3.260.0070.01816.20
7.3.250.0070.01116.17
7.3.240.0080.01216.18
7.3.230.0110.00616.39
7.3.210.0120.00616.52
7.3.200.0130.00719.39
7.3.190.0100.00616.60
7.3.180.0150.00816.44
7.3.170.0000.01516.39
7.3.160.0150.00016.33
7.3.120.0070.00814.79
7.3.110.0110.00614.70
7.3.100.0070.00714.77
7.3.90.0030.00714.61
7.3.80.0110.00014.71
7.3.70.0070.00714.53
7.3.60.0030.01014.78
7.3.50.0000.00914.34
7.3.40.0100.00614.71
7.3.30.0070.00314.52
7.3.20.0030.00916.45
7.3.10.0030.00716.29
7.3.00.0080.00316.40
7.2.330.0130.00316.45
7.2.320.0060.01216.42
7.2.310.0090.00916.65
7.2.300.0060.01016.56
7.2.290.0080.00816.73
7.2.250.0000.02215.14
7.2.240.0000.01814.52
7.2.230.0060.00914.94
7.2.220.0060.00314.82
7.2.210.0030.00915.11
7.2.200.0090.00614.79
7.2.190.0090.00614.93
7.2.180.0040.00814.90
7.2.170.0090.00614.91
7.2.130.0060.00616.83
7.2.120.0040.00416.80
7.2.110.0090.00916.38
7.2.100.0060.00616.77
7.2.90.0060.00316.59
7.2.80.0060.00616.83
7.2.70.0120.00616.91
7.2.60.0000.01516.79
7.2.50.0140.00416.74
7.2.40.0060.00616.71
7.2.30.0070.00416.61
7.2.20.0070.00416.85
7.2.10.0070.00716.46
7.2.00.0050.00918.06
7.1.330.0030.01015.80
7.1.320.0030.00715.82
7.1.310.0000.01415.73
7.1.300.0120.00015.91
7.1.290.0090.00615.77
7.1.280.0050.00815.56
7.1.270.0090.00615.62
7.1.260.0070.00715.91
7.1.250.0080.00815.61
7.1.240.0140.00015.55
7.1.230.0070.00415.71
7.1.220.0160.00015.69
7.1.210.0140.00015.54
7.1.200.0040.00815.70
7.1.190.0060.01215.71
7.1.180.0060.00315.65
7.1.170.0000.01315.68
7.1.160.0030.00715.80
7.1.150.0050.00315.68
7.1.140.0040.00715.68
7.1.130.0030.00715.68
7.1.120.0030.00715.45
7.1.110.0130.00315.90
7.1.100.0070.00516.87
7.1.90.0030.00715.73
7.1.80.0030.00815.68
7.1.70.0070.01016.34
7.1.60.0080.00817.85
7.1.50.0070.00716.31
7.1.40.0040.00415.54
7.1.30.0080.00015.41
7.1.20.0130.00315.35
7.1.10.0130.00015.75
7.1.00.0120.03519.13
7.0.330.0140.00015.13
7.0.320.0040.00415.21
7.0.310.0060.00615.15
7.0.300.0000.01215.07
7.0.290.0000.01215.12
7.0.280.0030.00915.15
7.0.270.0110.00415.05
7.0.260.0030.00615.07
7.0.250.0100.00315.38
7.0.240.0060.00615.35
7.0.230.0030.00615.27
7.0.220.0050.00515.15
7.0.210.0070.00715.09
7.0.200.0080.00215.86
7.0.190.0060.00314.93
7.0.180.0000.00715.37
7.0.170.0060.00615.26
7.0.160.0070.00715.21
7.0.150.0030.00615.41
7.0.140.0000.04318.60
7.0.130.0140.00015.20
7.0.120.0100.00315.14
7.0.110.0030.01015.44
7.0.100.0000.01215.29
7.0.90.0000.00915.30
7.0.80.0100.00315.27
7.0.70.0080.00815.57
7.0.60.0030.03617.40
7.0.50.0050.04316.46
7.0.40.0060.04016.70
7.0.30.0200.03716.56
7.0.20.0220.04016.74
7.0.10.0190.02516.68
7.0.00.0040.03116.66
5.6.380.0110.00013.98
5.6.370.0040.01114.25
5.6.360.0070.00414.31
5.6.350.0110.00314.29
5.6.340.0130.00014.52
5.6.330.0060.00314.29
5.6.320.0000.01014.07
5.6.310.0100.00014.57
5.6.300.0000.01414.02
5.6.290.0100.00314.00
5.6.280.0030.04017.71
5.6.270.0000.00714.46
5.6.260.0090.00313.87
5.6.250.0110.00313.68
5.6.240.0060.01014.34
5.6.230.0090.00314.39
5.6.220.0070.00414.16
5.6.210.0080.02017.46
5.6.200.0060.02616.38
5.6.190.0070.03017.44
5.6.180.1780.02417.42
5.6.170.0140.04317.53
5.6.160.0020.03417.31
5.6.150.0050.03616.18
5.6.140.0100.01816.27
5.6.130.0050.02016.22
5.6.120.0100.04317.54
5.6.110.0040.03417.57
5.6.100.0070.03517.43
5.6.90.0090.04717.46
5.6.80.0110.03917.19
5.6.70.1360.01817.12
5.6.60.0030.01213.90
5.6.50.0070.00713.95
5.6.40.0000.01213.89
5.6.30.0000.01413.98
5.6.20.0160.00014.10
5.6.10.0090.00314.26
5.6.00.0100.00313.90
5.5.380.0000.01111.00
5.5.370.0030.00610.80
5.5.360.0110.00010.97
5.5.350.0060.04215.74
5.5.340.0070.04014.41
5.5.330.0070.02915.58
5.5.320.0150.04015.65
5.5.310.0100.02215.45
5.5.300.0110.02814.55
5.5.290.0050.04214.45
5.5.280.0020.02416.04
5.5.270.0060.04215.90
5.5.260.0080.03715.87
5.5.250.0040.03715.72
5.5.240.0020.02815.54
5.5.230.0000.00710.65
5.5.220.0030.00311.06
5.5.210.0070.00311.02
5.5.200.0030.00911.13
5.5.190.0040.00710.56
5.5.180.0000.01210.90
5.5.170.0000.01010.81
5.5.160.0040.00410.36
5.5.150.0070.00310.70
5.5.140.0050.00310.83
5.5.130.0080.00310.65
5.5.120.0040.00810.85
5.5.110.0000.01010.70
5.5.100.0030.01210.78
5.5.90.0000.01510.85
5.5.80.0030.01010.72
5.5.70.0040.00811.09
5.5.60.0030.00310.85
5.5.50.0000.00711.04
5.5.40.0040.00710.86
5.5.30.0030.00310.92
5.5.20.0060.00610.50
5.5.10.0040.00711.13
5.5.00.0090.00311.01
5.4.450.0260.02215.15
5.4.440.0220.02215.18
5.4.430.0150.02415.18
5.4.420.0090.01915.24
5.4.410.0070.02914.89
5.4.400.0050.02814.65
5.4.390.0070.03014.69
5.4.380.0150.02514.62
5.4.370.0100.02814.79
5.4.360.0160.02314.57
5.4.350.0090.03114.87
5.4.340.0130.02714.71
5.4.330.0030.01010.82
5.4.320.0070.01911.51
5.4.310.0050.02611.60
5.4.300.0040.02311.53
5.4.290.0050.02511.58
5.4.280.0070.02011.35
5.4.270.0040.02011.56
5.4.260.0100.02011.57
5.4.250.0050.02311.61
5.4.240.0080.02211.59
5.4.230.0070.02211.46
5.4.220.0060.02111.72
5.4.210.0040.02211.62
5.4.200.0050.02311.61
5.4.190.0040.02211.59
5.4.180.0020.02211.58
5.4.170.0080.01711.68
5.4.160.0040.02311.65
5.4.150.0040.02211.63
5.4.140.0020.02511.52
5.4.130.0070.01911.42
5.4.120.0060.02511.41
5.4.110.0050.02011.26
5.4.100.0100.02311.29
5.4.90.0050.02111.45
5.4.80.0060.01911.50
5.4.70.0030.02211.38
5.4.60.0060.01911.46
5.4.50.0040.02611.44
5.4.40.0050.01911.32
5.4.30.0050.01911.48
5.4.20.0040.02111.43
5.4.10.0050.01911.48
5.4.00.0040.02011.25
5.3.290.0070.02111.65
5.3.280.0070.02211.60
5.3.270.0060.02111.67
5.3.260.0030.02211.64
5.3.250.0040.02611.67
5.3.240.0050.02311.57
5.3.230.0040.02111.64
5.3.220.0020.02711.60
5.3.210.0040.02511.60
5.3.200.0060.02011.43
5.3.190.0040.02311.47
5.3.180.0040.02211.61
5.3.170.0060.02311.65
5.3.160.0060.02211.63
5.3.150.0070.02011.53
5.3.140.0070.02211.49
5.3.130.0030.02311.60
5.3.120.0050.02211.59
5.3.110.0020.02411.61
5.3.100.0030.02211.35
5.3.90.0030.02311.27
5.3.80.0090.01811.13
5.3.70.0040.02211.14
5.3.60.0050.01911.23
5.3.50.0050.02211.19
5.3.40.0050.02411.22
5.3.30.0040.02011.12
5.3.20.0060.01911.10
5.3.10.0040.01810.84
5.3.00.0060.01910.95
5.2.170.0040.0159.35
5.2.160.0060.0149.35
5.2.150.0050.0169.37
5.2.140.0030.0199.25
5.2.130.0040.0159.34
5.2.120.0040.0179.29
5.2.110.0060.0159.17
5.2.100.0040.0169.17
5.2.90.0040.0169.18
5.2.80.0030.0189.07
5.2.70.0020.0189.22
5.2.60.0050.0179.13
5.2.50.0040.0179.20
5.2.40.0040.0169.22
5.2.30.0030.0179.19
5.2.20.0040.0189.13
5.2.10.0060.0148.99
5.2.00.0060.0168.86
5.1.60.0020.0148.19
5.1.50.0020.0168.26
5.1.40.0030.0148.18
5.1.30.0050.0148.54
5.1.20.0050.0158.37
5.1.10.0040.0188.35
5.1.00.0050.0158.26
5.0.50.0030.0117.46
5.0.40.0030.0127.40
5.0.30.0040.0207.30
5.0.20.0040.0107.29
5.0.10.0010.0137.28
5.0.00.0020.0177.27
4.4.90.0030.0096.55
4.4.80.0010.0106.54
4.4.70.0030.0096.54
4.4.60.0030.0096.54
4.4.50.0040.0076.55
4.4.40.0010.0156.52
4.4.30.0010.0106.54
4.4.20.0030.0126.59
4.4.10.0010.0116.59
4.4.00.0020.0156.54
4.3.110.0020.0096.50
4.3.100.0020.0106.50
4.3.90.0030.0086.48
4.3.80.0010.0166.45
4.3.70.0040.0086.48
4.3.60.0020.0096.48
4.3.50.0010.0116.48
4.3.40.0010.0156.43
4.3.30.0020.0105.80
4.3.20.0030.0105.80
4.3.10.0030.0095.78
4.3.00.0030.01111.69

preferences:
45.37 ms | 401 KiB | 5 Q