3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public function __construct(string $bar) { echo 'foo'; } } class MD extends Base { public function __construct($bar) { parent::__construct($bar); echo $bar; } } $md = new MD('bar');

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.130.0060.00918.38
8.3.120.0090.00618.93
8.3.110.0000.00820.94
8.3.100.0100.00624.06
8.3.90.0070.00726.77
8.3.80.0060.00318.43
8.3.70.0080.00816.58
8.3.60.0100.01016.75
8.3.50.0040.01116.55
8.3.40.0100.00618.62
8.3.30.0070.00718.45
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.250.0080.00018.47
8.2.240.0040.00417.07
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0100.00326.77
8.2.200.0050.00516.38
8.2.190.0060.00916.58
8.2.180.0070.01425.92
8.2.170.0110.00418.79
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00320.87
8.2.110.0040.00421.00
8.2.100.0060.00617.91
8.2.90.0050.00317.75
8.2.80.0040.00418.55
8.2.70.0000.00817.50
8.2.60.0050.00318.03
8.2.50.0050.00518.05
8.2.40.0000.00818.16
8.2.30.0000.00918.06
8.2.20.0000.00717.92
8.2.10.0040.00419.17
8.2.00.0040.00419.15
8.1.300.0100.00018.36
8.1.290.0060.00330.84
8.1.280.0130.01025.92
8.1.270.0040.00423.90
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00419.30
8.1.230.0110.00017.77
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0030.00717.11
8.1.190.0000.00817.23
8.1.180.0040.00418.89
8.1.170.0050.00318.50
8.1.160.0000.00718.86
8.1.150.0040.00418.82
8.1.140.0040.00418.80
8.1.130.0030.00320.25
8.1.120.0030.00517.39
8.1.110.0030.00617.29
8.1.100.0040.00417.42
8.1.90.0050.00317.41
8.1.80.0000.00717.27
8.1.70.0040.00417.36
8.1.60.0000.00917.57
8.1.50.0040.00417.49
8.1.40.0040.01017.52
8.1.30.0000.00817.66
8.1.20.0040.00417.51
8.1.10.0080.00417.55
8.1.00.0000.00717.43
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0040.00417.99
8.0.260.0030.00318.46
8.0.250.0000.00716.93
8.0.240.0030.00316.95
8.0.230.0040.00416.81
8.0.220.0030.00316.83
8.0.210.0070.00016.82
8.0.200.0000.00616.77
8.0.190.0050.00316.74
8.0.180.0040.00716.86
8.0.170.0040.00416.84
8.0.160.0000.00816.77
8.0.150.0000.00816.68
8.0.140.0000.00716.83
8.0.130.0060.00013.14
8.0.120.0040.00416.69
8.0.110.0040.00416.75
8.0.100.0080.00016.88
8.0.90.0050.00316.84
8.0.80.0030.00616.78
8.0.70.0040.00516.79
8.0.60.0040.00516.62
8.0.50.0030.00516.76
8.0.30.0070.00216.83
8.0.20.0050.00416.85
8.0.10.0040.00516.78
8.0.00.0030.00516.97
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0030.00316.59
7.4.290.0070.00016.50
7.4.280.0090.00316.49
7.4.270.0050.00216.44
7.4.260.0000.00513.16
7.4.250.0000.00816.55
7.4.240.0030.00516.57
7.4.230.0000.00716.56
7.4.220.0030.00416.50
7.4.210.0000.00816.38
7.4.200.0050.00316.56
7.4.190.0060.00216.41
7.4.180.0070.00116.57
7.4.160.0040.00416.42
7.4.150.0020.00716.57
7.4.140.0070.00216.55
7.4.130.0020.00616.51
7.4.120.0000.00816.57
7.4.110.0060.00216.45
7.4.100.0040.00416.41
7.4.90.0020.00716.37
7.4.80.0040.00516.56
7.4.70.0030.00516.34
7.4.60.0040.00416.46
7.4.50.0040.00416.26
7.4.40.0020.00616.45
7.4.30.0040.00416.39
7.4.20.0050.00416.36
7.4.10.0020.00516.51
7.4.00.0040.00416.48
7.3.330.0070.00016.02
7.3.320.0050.00013.06
7.3.310.0030.00316.23
7.3.300.0070.00016.27
7.3.290.0050.00216.21
7.3.280.0030.00516.16
7.3.270.0060.00316.20
7.3.260.0010.00616.16
7.3.250.0040.00416.19
7.3.240.0020.00616.18
7.3.230.0040.00316.17
7.3.220.0040.00516.16
7.3.210.0020.00616.07
7.3.200.0030.00616.05
7.3.190.0040.00416.17
7.3.180.0030.00516.18
7.3.170.0030.00516.17
7.3.160.0020.00616.11
7.3.150.0030.00416.05
7.3.140.0040.00416.05
7.3.130.0030.00516.09
7.3.120.0060.00216.08
7.3.110.0030.00415.99
7.3.100.0040.00416.06
7.3.90.0040.00416.43
7.3.80.0020.00516.06
7.3.70.0050.00316.28
7.3.60.0040.00416.27
7.3.50.0040.00416.38
7.3.40.0020.00516.26
7.3.30.0020.00616.36
7.3.20.0030.00516.31
7.3.10.0040.00416.27
7.3.00.0040.00316.26
7.2.340.0100.00216.24
7.2.330.0060.00316.20
7.2.320.0080.00016.32
7.2.310.0000.00916.17
7.2.300.0030.00616.35
7.2.290.0000.00916.16
7.2.280.0030.00616.35
7.2.270.0080.00016.30
7.2.260.0030.00616.25
7.2.250.0080.00016.18
7.2.240.0080.00016.18
7.2.230.0040.00416.30
7.2.220.0050.00516.17
7.2.210.0070.00216.29
7.2.200.0060.00316.30
7.2.190.0080.00016.41
7.2.180.0040.00416.29
7.2.170.0000.00716.32
7.2.160.0040.00416.53
7.2.150.0050.00316.40
7.2.140.0000.00816.61
7.2.130.0080.00016.56
7.2.120.0050.00216.67
7.2.110.0020.00516.67
7.2.100.0040.00416.53
7.2.90.0050.00316.53
7.2.80.0040.00416.41
7.2.70.0000.00816.57
7.2.60.0040.00416.44
7.2.50.0030.00516.46
7.2.40.0080.00016.44
7.2.30.0040.00416.50
7.2.20.0030.00616.56
7.2.10.0030.00616.48
7.2.00.0040.00416.65
7.1.330.0070.00015.43
7.1.320.0030.00715.46
7.1.310.0060.00617.22
7.1.300.0030.00317.39
7.1.290.0040.00417.19
7.1.280.0000.00717.26
7.1.270.0040.00417.36
7.1.260.0070.00017.17
7.1.250.0000.00817.11
7.1.240.0060.00317.11
7.1.230.0040.00517.32
7.1.220.0030.00617.30
7.1.210.0070.00317.22
7.1.200.0060.00317.30
7.1.190.0050.00517.21
7.1.180.0060.00617.25
7.1.170.0110.00017.34
7.1.160.0030.00717.13
7.1.150.0040.00717.32
7.1.140.0070.00317.21
7.1.130.0060.00217.28
7.1.120.0070.00317.16
7.1.110.0080.00317.13
7.1.100.0000.01017.34
7.1.90.0070.00317.15
7.1.80.0000.00817.20
7.1.70.0090.00017.18
7.1.60.0070.00417.36
7.1.50.0040.00417.26
7.1.40.0050.00317.41
7.1.30.0000.00817.18
7.1.20.0000.00817.21
7.1.10.0050.00217.28
7.1.00.0040.00417.11
7.0.330.0040.00417.08
7.0.320.0000.00617.07
7.0.310.0040.00417.00
7.0.300.0070.00016.96
7.0.290.0000.00717.05
7.0.280.0000.00816.88
7.0.270.0050.00217.05
7.0.260.0000.00817.09
7.0.250.0000.00817.18
7.0.240.0070.00017.10
7.0.230.0040.00417.19
7.0.220.0070.00017.18
7.0.210.0000.00717.17
7.0.200.0030.00317.11
7.0.190.0030.00317.00
7.0.180.0070.00017.03
7.0.170.0070.00017.13
7.0.160.0050.00216.86
7.0.150.0000.00717.05
7.0.140.0000.00616.91
7.0.130.0030.00317.11
7.0.120.0000.00717.13
7.0.110.0030.00316.88
7.0.100.0040.00317.06
7.0.90.0000.00716.96
7.0.80.0000.00716.80
7.0.70.0030.00316.92
7.0.60.0050.00216.89
7.0.50.0030.00316.84
7.0.40.0000.00717.11
7.0.30.0000.00717.09
7.0.20.0030.00317.01
7.0.10.0050.00217.08
7.0.00.0000.00717.04
5.6.400.0040.00415.78
5.6.390.0050.00215.61
5.6.380.0070.00015.89
5.6.370.0030.00315.83
5.6.360.0000.00715.85
5.6.350.0020.00515.59
5.6.340.0030.00315.90
5.6.330.0040.00415.90
5.6.320.0060.00015.68
5.6.310.0030.00315.80
5.6.300.0040.00415.58
5.6.290.0030.00315.83
5.6.280.0030.00315.90
5.6.270.0070.00015.54
5.6.260.0030.00315.72
5.6.250.0050.00215.69
5.6.240.0070.00015.66
5.6.230.0070.00015.91
5.6.220.0000.00815.98
5.6.210.0070.00015.72
5.6.200.0000.00716.06
5.6.190.0040.00415.78
5.6.180.0000.00715.64
5.6.170.0070.00015.82
5.6.160.0040.00416.06
5.6.150.0000.00715.76
5.6.140.0030.00515.66
5.6.130.0000.00715.80
5.6.120.0030.00315.83
5.6.110.0050.00215.72
5.6.100.0040.00415.64
5.6.90.0000.00715.79
5.6.80.0040.00415.64
5.6.70.0000.00715.64
5.6.60.0030.00315.84
5.6.50.0030.00515.67
5.6.40.0000.00715.66
5.6.30.0040.00415.67
5.6.20.0040.00415.49
5.6.10.0050.00215.57
5.6.00.0040.00415.71
5.5.380.0030.00315.81
5.5.370.0050.00315.73
5.5.360.0000.00715.73
5.5.350.0000.00715.68
5.5.340.0070.00015.71
5.5.330.0000.00715.62
5.5.320.0040.00415.62
5.5.310.0070.00015.50
5.5.300.0060.00315.48
5.5.290.0060.00315.65
5.5.280.0040.00415.62
5.5.270.0040.00415.56
5.5.260.0040.00415.64
5.5.250.0030.00315.80
5.5.240.0050.00215.77
5.5.230.0040.00415.71
5.5.220.0000.00715.67
5.5.210.0000.00815.62
5.5.200.0050.00315.45
5.5.190.0000.00715.55
5.5.180.0070.00015.43
5.5.170.0000.00715.50
5.5.160.0000.00715.55
5.5.150.0040.00415.64
5.5.140.0070.00015.52
5.5.130.0030.00315.36
5.5.120.0000.00815.59
5.5.110.0040.00415.38
5.5.100.0000.00715.68
5.5.90.0000.00715.54
5.5.80.0020.00515.68
5.5.70.0030.00315.71
5.5.60.0040.00415.75
5.5.50.0000.00715.78
5.5.40.0040.00415.68
5.5.30.0080.00015.76
5.5.20.0070.00015.85
5.5.10.0030.00315.59
5.5.00.0000.00715.67
5.4.450.0000.00612.51
5.4.440.0030.00312.59
5.4.430.0050.00012.71
5.4.420.0000.00612.55
5.4.410.0050.00012.39
5.4.400.0030.00312.48
5.4.390.0030.00312.46
5.4.380.0030.00312.53
5.4.370.0060.00012.41
5.4.360.0050.00012.50
5.4.350.0060.00012.49
5.4.340.0030.00312.59
5.4.330.0050.00012.37
5.4.320.0030.00312.53
5.4.310.0020.00212.51
5.4.300.0060.00012.52
5.4.290.0050.00012.52
5.4.280.0060.00012.52
5.4.270.0050.00012.61
5.4.260.0030.00415.42
5.4.250.0050.00012.57
5.4.240.0050.00012.54
5.4.230.0050.00012.28
5.4.220.0050.00012.27
5.4.210.0030.00312.14
5.4.200.0050.00012.13
5.4.190.0000.00512.44
5.4.180.0000.00512.44
5.4.170.0050.00012.33
5.4.160.0000.00612.19
5.4.150.0000.00512.38
5.4.140.0000.00512.45
5.4.130.0060.00012.39
5.4.120.0000.00512.54
5.4.110.0000.00512.58
5.4.100.0030.00312.62
5.4.90.0020.00212.61
5.4.80.0030.00312.46
5.4.70.0000.00512.49
5.4.60.0030.00312.44
5.4.50.0000.00512.68
5.4.40.0050.00012.60
5.4.30.0050.00012.57
5.4.20.0060.00012.49
5.4.10.0060.00012.51
5.4.00.0050.00012.36
5.3.290.0000.00613.10
5.3.280.0000.00512.74
5.3.270.0030.00313.13
5.3.260.0000.00613.04
5.3.250.0000.00512.86
5.3.240.0000.00612.91
5.3.230.0030.00313.07
5.3.220.0030.00312.73
5.3.210.0000.00612.73
5.3.200.0000.00512.73
5.3.190.0060.00013.05
5.3.180.0060.00013.16
5.3.170.0000.00713.13
5.3.160.0000.00713.13
5.3.150.0030.00313.10
5.3.140.0000.00513.04
5.3.130.0060.00012.85
5.3.120.0000.00513.25
5.3.110.0030.00312.85
5.3.100.0000.00513.07
5.3.90.0000.00612.96
5.3.80.0060.00012.90
5.3.70.0020.00212.92
5.3.60.0050.00012.78
5.3.50.0060.00012.96
5.3.40.0000.00612.86
5.3.30.0020.00212.67
5.3.20.0000.00512.86
5.3.10.0000.00612.50
5.3.00.0000.00612.82
5.2.170.0000.00511.90
5.2.160.0040.00012.21
5.2.150.0050.00012.12
5.2.140.0000.00511.78
5.2.130.0000.00511.89
5.2.120.0020.00211.98
5.2.110.0000.00511.92
5.2.100.0030.00311.93
5.2.90.0000.00511.98
5.2.80.0020.00311.88
5.2.70.0000.00511.82
5.2.60.0050.00011.67
5.2.50.0000.00511.91
5.2.40.0000.00511.77
5.2.30.0000.00511.72
5.2.20.0050.00011.76
5.2.10.0050.00011.58
5.2.00.0050.00011.53
5.1.60.0050.00011.53
5.1.50.0040.00011.53
5.1.40.0000.00411.53
5.1.30.0000.00511.53
5.1.20.0000.00411.53
5.1.10.0040.00011.53
5.1.00.0020.00211.53
5.0.50.0000.00411.53
5.0.40.0040.00011.53
5.0.30.0000.00411.53
5.0.20.0040.00011.53
5.0.10.0000.00411.53
5.0.00.0000.00311.53
4.4.90.0000.00211.53
4.4.80.0020.00011.53
4.4.70.0000.00211.53
4.4.60.0000.00211.53
4.4.50.0000.00211.53
4.4.40.0020.00011.53
4.4.30.0000.00211.53
4.4.20.0000.00211.53
4.4.10.0000.00211.53
4.4.00.0000.00211.53
4.3.110.0000.00211.53
4.3.100.0000.00211.53
4.3.90.0000.00211.53
4.3.80.0020.00011.53
4.3.70.0000.00211.53
4.3.60.0000.00211.53
4.3.50.0000.00311.53
4.3.40.0020.00011.53
4.3.30.0000.00211.53
4.3.20.0000.00211.53
4.3.10.0020.00011.53
4.3.00.0000.00211.53

preferences:
29.94 ms | 403 KiB | 5 Q