3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B extends A { public function __construct() { parent::__construct(); } } $b = new B;

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.4.20.0170.00317.76
8.4.10.0040.00419.84
8.3.150.0150.00320.65
8.3.140.0040.00418.39
8.3.130.0040.00418.55
8.3.120.0050.00318.91
8.3.110.0090.00020.94
8.3.100.0120.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00316.88
8.3.70.0140.00316.75
8.3.60.0090.00916.88
8.3.50.0090.00921.99
8.3.40.0120.00318.60
8.3.30.0110.00318.54
8.3.20.0040.00421.73
8.3.10.0000.00921.72
8.3.00.0030.00519.38
8.2.270.0090.00917.08
8.2.260.0070.01120.66
8.2.250.0060.00316.88
8.2.240.0030.00618.76
8.2.230.0040.00422.58
8.2.220.0070.00337.54
8.2.210.0040.00426.77
8.2.200.0120.00016.88
8.2.190.0100.01016.58
8.2.180.0150.00618.66
8.2.170.0140.00718.95
8.2.160.0100.00722.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00419.64
8.2.110.0060.00322.29
8.2.100.0040.00817.91
8.2.90.0030.00620.60
8.2.80.0050.00318.04
8.2.70.0050.00317.80
8.2.60.0040.00417.99
8.2.50.0030.00619.36
8.2.40.0000.00822.15
8.2.30.0000.00719.16
8.2.20.0050.00217.89
8.2.10.0080.00017.86
8.2.00.0070.00017.57
8.1.310.0050.00316.50
8.1.300.0110.00718.15
8.1.290.0080.00318.88
8.1.280.0120.00625.92
8.1.270.0040.00720.70
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.53
8.1.230.0070.00420.99
8.1.220.0080.00017.74
8.1.210.0040.00418.85
8.1.200.0050.00317.22
8.1.190.0060.00617.00
8.1.180.0040.00418.10
8.1.170.0000.00718.78
8.1.160.0070.00018.75
8.1.150.0040.00420.24
8.1.140.0040.00419.34
8.1.130.0030.00318.88
8.1.120.0000.00717.37
8.1.110.0040.00417.30
8.1.100.0000.00817.28
8.1.90.0070.00017.24
8.1.80.0000.00717.36
8.1.70.0070.00017.37
8.1.60.0000.00817.56
8.1.50.0040.00417.38
8.1.40.0080.00017.46
8.1.30.0060.00317.48
8.1.20.0000.00717.53
8.1.10.0070.00017.40
8.1.00.0040.00417.42
8.0.300.0040.00419.82
8.0.290.0000.00716.75
8.0.280.0030.00318.28
8.0.270.0040.00416.73
8.0.260.0000.00617.18
8.0.250.0000.00716.98
8.0.240.0000.00616.95
8.0.230.0030.00316.96
8.0.220.0000.00716.80
8.0.210.0070.00016.86
8.0.200.0030.00316.98
8.0.190.0050.00316.95
8.0.180.0000.00716.92
8.0.170.0000.00716.80
8.0.160.0070.00016.87
8.0.150.0000.00716.72
8.0.140.0070.00016.89
8.0.130.0030.00313.30
8.0.120.0000.00816.84
8.0.110.0070.00016.82
8.0.100.0040.00416.73
8.0.90.0080.00016.81
8.0.80.0130.00716.85
8.0.70.0070.00016.91
8.0.60.0070.00016.75
8.0.50.0040.00416.75
8.0.30.0120.00517.11
8.0.20.0140.01617.40
8.0.10.0000.00716.99
8.0.00.0100.00616.70
7.4.330.0000.00515.55
7.4.320.0000.00616.36
7.4.300.0030.00316.41
7.4.290.0030.00316.52
7.4.280.0060.00316.34
7.4.270.0000.00816.52
7.4.260.0030.00716.37
7.4.250.0030.00316.50
7.4.240.0000.00716.52
7.4.230.0030.00316.59
7.4.220.0160.00616.50
7.4.210.0070.01016.46
7.4.200.0030.00316.23
7.4.160.0110.00816.35
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0120.00616.53
7.4.120.0140.00516.44
7.4.110.0140.00616.39
7.4.100.0150.00616.48
7.4.90.0040.01416.39
7.4.80.0100.00619.39
7.4.70.0060.01016.39
7.4.60.0090.00616.38
7.4.50.0040.01116.55
7.4.40.0130.00316.44
7.4.30.0090.00616.47
7.4.10.0080.00415.00
7.4.00.0070.01014.85
7.3.330.0050.00013.37
7.3.320.0030.00313.42
7.3.310.0030.00316.20
7.3.300.0000.00816.29
7.3.290.0040.01116.33
7.3.280.0110.00616.38
7.3.270.0140.00417.40
7.3.260.0120.00616.31
7.3.250.0100.00916.46
7.3.240.0110.00916.44
7.3.230.0110.00716.21
7.3.210.0140.00416.37
7.3.200.0040.01816.59
7.3.190.0090.01216.43
7.3.180.0110.01116.24
7.3.170.0070.01416.59
7.3.160.0100.00716.38
7.3.130.0070.01014.71
7.3.120.0100.00614.74
7.3.110.0070.01014.47
7.3.100.0080.00814.93
7.3.90.0030.00714.81
7.3.80.0000.01014.80
7.3.70.0000.01414.60
7.3.60.0030.01014.54
7.3.50.0050.00514.61
7.3.40.0030.00714.82
7.3.30.0060.00314.49
7.3.20.0060.00616.45
7.3.10.0080.00616.61
7.3.00.0040.00716.51
7.2.330.0080.00816.23
7.2.320.0100.00716.32
7.2.310.0070.01016.29
7.2.300.0030.01516.55
7.2.290.0120.00916.24
7.2.260.0080.00314.95
7.2.250.0030.01415.11
7.2.240.0000.01415.15
7.2.230.0060.01014.97
7.2.220.0070.00714.71
7.2.210.0070.00714.82
7.2.200.0000.01714.83
7.2.190.0040.01114.86
7.2.180.0000.01714.76
7.2.170.0030.00915.01
7.2.160.0030.01015.04
7.2.150.0030.00916.49
7.2.140.0040.01216.81
7.2.130.0090.00816.79
7.2.120.0080.00716.71
7.2.110.0070.00516.70
7.2.100.0030.00816.69
7.2.90.0050.00716.69
7.2.80.0050.00816.92
7.2.70.0030.01016.72
7.2.60.0070.00616.71
7.2.50.0050.00716.50
7.2.40.0030.00916.58
7.2.30.0040.01216.74
7.2.20.0040.01016.72
7.2.10.0010.01116.70
7.2.00.0090.00517.59
7.1.330.0030.00615.72
7.1.320.0060.00915.68
7.1.310.0090.00615.61
7.1.300.0000.00815.43
7.1.290.0000.01315.67
7.1.280.0030.00615.63
7.1.270.0060.00315.39
7.1.260.0030.01215.45
7.1.250.0040.01215.54
7.1.240.0030.01115.41
7.1.230.0090.00515.33
7.1.220.0080.00515.68
7.1.210.0020.01215.58
7.1.200.0060.00615.68
7.1.190.0030.01015.35
7.1.180.0080.00615.53
7.1.170.0050.00415.56
7.1.160.0040.00715.64
7.1.150.0030.01015.56
7.1.140.0070.00715.51
7.1.130.0090.00315.57
7.1.120.0050.00915.62
7.1.110.0050.00715.61
7.1.100.0050.00616.50
7.1.90.0040.00915.45
7.1.80.0070.00715.60
7.1.70.0060.00615.95
7.1.60.0030.00915.94
7.1.50.0060.01321.98
7.1.40.0090.00315.72
7.1.30.0050.00915.40
7.1.20.0050.00815.43
7.1.10.0040.03417.77
7.1.00.0050.02717.84
7.0.330.0070.00515.33
7.0.320.0060.00615.36
7.0.310.0030.00715.16
7.0.300.0030.01015.37
7.0.290.0030.00815.12
7.0.280.0080.00215.33
7.0.270.0060.00615.36
7.0.260.0070.00715.28
7.0.250.0020.01015.14
7.0.240.0080.00815.46
7.0.230.0060.00715.30
7.0.220.0070.00715.38
7.0.210.0070.00515.48
7.0.200.0030.00915.74
7.0.190.0060.00415.30
7.0.180.0070.00815.19
7.0.170.0060.00515.35
7.0.160.0060.00615.42
7.0.150.0110.02017.53
7.0.140.0060.02317.56
7.0.130.0030.02617.52
7.0.120.0080.02317.51
7.0.110.0050.02617.40
7.0.100.0090.02117.41
7.0.90.0050.02317.43
7.0.80.0110.02817.43
7.0.70.0070.02217.46
7.0.60.0070.02917.53
7.0.50.0090.02217.46
7.0.40.0050.02616.10
7.0.30.0070.02016.14
7.0.20.0050.02416.09
7.0.10.0020.02516.18
7.0.00.0070.02116.08
5.6.400.0120.00314.22
5.6.390.0080.00414.57
5.6.380.0040.00914.27
5.6.370.0130.00014.25
5.6.360.0040.00714.24
5.6.350.0030.00914.06
5.6.340.0060.00314.55
5.6.330.0040.00414.10
5.6.320.0040.00414.21
5.6.310.0030.01014.54
5.6.300.0040.00414.27
5.6.290.0000.01414.52
5.6.280.0070.00714.59
5.6.270.0000.01014.53
5.6.260.0080.00614.11
5.6.250.0100.00314.26
5.6.240.0030.01014.42
5.6.230.0090.00914.34
5.6.220.0060.00614.41
5.6.210.0040.01113.99
5.6.200.0060.00914.19
5.6.190.0070.00314.17
5.6.180.0000.01314.40
5.6.170.0060.00614.02
5.6.160.0030.01514.17
5.6.150.0060.00314.12
5.6.140.0110.00014.38
5.6.130.0070.00314.30
5.6.120.0000.01614.52
5.6.110.0040.01114.05
5.6.100.0070.00714.32
5.6.90.0080.00414.46
5.6.80.0000.00814.01
5.6.70.0080.00414.00
5.6.60.0060.01014.20
5.6.50.0070.00714.19
5.6.40.0060.00914.17
5.6.30.0090.00614.27
5.6.20.0030.00914.22
5.6.10.0000.01413.96
5.6.00.0070.00714.20

preferences:
27.82 ms | 403 KiB | 5 Q