3v4l.org

run code in 300+ PHP versions simultaneously
<?php function expectsInt(int $i) { return $i; } echo expectsInt(5);

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.0110.00719.57
8.4.10.0150.00419.20
8.3.150.0040.01416.49
8.3.140.0090.00919.02
8.3.130.0040.00418.61
8.3.120.0090.00919.10
8.3.110.0120.00320.94
8.3.100.0090.00016.47
8.3.90.0040.00426.77
8.3.80.0060.00316.38
8.3.70.0140.00716.58
8.3.60.0100.00716.50
8.3.50.0170.00317.91
8.3.40.0090.00920.35
8.3.30.0110.00318.63
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.270.0120.00617.29
8.2.260.0030.01316.82
8.2.250.0050.00518.21
8.2.240.0090.00616.99
8.2.230.0040.00722.58
8.2.220.0070.00024.06
8.2.210.0000.00726.77
8.2.200.0030.00616.50
8.2.190.0100.01018.23
8.2.180.0110.00325.92
8.2.170.0060.00918.75
8.2.160.0120.00322.96
8.2.150.0000.00725.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0100.00326.16
8.2.110.0160.00322.08
8.2.100.0120.00017.72
8.2.90.0000.00818.84
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0040.00417.92
8.2.50.0030.00518.07
8.2.40.0030.00519.91
8.2.30.0000.00717.90
8.2.20.0050.00317.89
8.2.10.0080.00022.46
8.2.00.0080.00019.12
8.1.310.0070.01016.64
8.1.300.0100.01017.79
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00721.29
8.1.230.0080.00317.82
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0030.00617.11
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0050.00518.63
8.1.150.0000.00718.41
8.1.140.0000.00818.75
8.1.130.0070.00023.92
8.1.120.0070.00017.36
8.1.110.0000.00717.34
8.1.100.0000.00717.31
8.1.90.0000.00717.19
8.1.80.0070.00017.32
8.1.70.0000.00717.30
8.1.60.0040.00417.50
8.1.50.0030.00617.33
8.1.40.0080.00317.35
8.1.30.0040.00417.47
8.1.20.0080.00017.57
8.1.10.0030.00617.41
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.24
8.0.270.0050.00217.79
8.0.260.0040.00418.45
8.0.250.0030.00316.93
8.0.240.0050.00216.77
8.0.230.0000.00716.78
8.0.220.0020.00516.64
8.0.210.0000.00716.77
8.0.200.0000.00616.74
8.0.190.0040.00416.85
8.0.180.0060.00316.80
8.0.170.0030.00516.76
8.0.160.0000.00716.74
8.0.150.0030.00316.66
8.0.140.0070.00316.70
8.0.130.0050.00013.22
8.0.120.0000.00716.75
8.0.110.0040.00416.57
8.0.100.0040.00416.74
8.0.90.0040.00416.69
8.0.80.0030.00416.78
8.0.70.0020.00616.76
8.0.60.0080.00016.66
8.0.50.0060.00216.70
8.0.30.0010.00716.79
8.0.20.0020.00616.85
8.0.10.0000.00716.80
8.0.00.0000.00816.89
7.4.330.0050.00015.55
7.4.320.0030.00316.40
7.4.300.0060.00016.35
7.4.290.0000.00716.52
7.4.280.0070.00016.33
7.4.270.0000.00716.56
7.4.260.0000.00513.14
7.4.250.0000.00716.48
7.4.240.0000.00716.58
7.4.230.0020.00516.40
7.4.220.0040.00416.39
7.4.210.0020.00516.58
7.4.200.0040.00416.47
7.4.190.0060.00216.53
7.4.180.0040.00416.59
7.4.160.0020.00516.44
7.4.150.0030.00516.54
7.4.140.0020.00616.39
7.4.130.0020.00616.46
7.4.120.0040.00416.31
7.4.110.0030.00316.33
7.4.100.0020.00616.47
7.4.90.0000.00716.38
7.4.80.0040.00316.39
7.4.70.0050.00216.26
7.4.60.0050.00216.29
7.4.50.0020.00516.40
7.4.40.0050.00216.31
7.4.30.0030.00316.33
7.4.20.0050.00216.30
7.4.10.0030.00316.29
7.4.00.0050.00216.47
7.3.330.0040.00416.12
7.3.320.0000.00613.30
7.3.310.0080.00016.13
7.3.300.0040.00416.17
7.3.290.0020.00516.13
7.3.280.0070.00016.22
7.3.270.0030.00416.16
7.3.260.0000.00716.12
7.3.250.0050.00216.18
7.3.240.0030.00316.20
7.3.230.0030.00316.20
7.3.220.0020.00516.19
7.3.210.0030.00316.10
7.3.200.0050.00216.12
7.3.190.0030.00316.17
7.3.180.0020.00516.20
7.3.170.0040.00416.13
7.3.160.0070.00016.15
7.3.150.0020.00516.08
7.3.140.0040.00416.10
7.3.130.0040.00516.10
7.3.120.0050.00316.15
7.3.110.0050.00216.09
7.3.100.0030.00516.07
7.3.90.0050.00316.39
7.3.80.0020.00616.10
7.3.70.0040.00316.35
7.3.60.0040.00316.28
7.3.50.0040.00316.40
7.3.40.0070.00016.41
7.3.30.0050.00216.32
7.3.20.0020.00616.27
7.3.10.0040.00416.24
7.3.00.0020.00516.21
7.2.340.0030.00516.14
7.2.330.0070.00016.19
7.2.320.0010.00716.17
7.2.310.0030.00316.27
7.2.300.0020.00516.21
7.2.290.0070.00016.25
7.2.280.0000.00716.21
7.2.270.0000.00716.11
7.2.260.0070.00016.19
7.2.250.0000.00716.11
7.2.240.0000.00716.14
7.2.230.0010.00616.22
7.2.220.0010.00616.20
7.2.210.0060.00216.22
7.2.200.0040.00416.36
7.2.190.0030.00316.33
7.2.180.0030.00516.33
7.2.170.0020.00516.34
7.2.160.0010.00616.37
7.2.150.0040.00316.42
7.2.140.0080.00016.43
7.2.130.0040.00416.62
7.2.120.0060.00116.56
7.2.110.0060.00116.56
7.2.100.0060.00216.49
7.2.90.0060.00116.48
7.2.80.0030.00516.45
7.2.70.0020.00616.46
7.2.60.0010.00716.46
7.2.50.0050.00416.38
7.2.40.0080.00016.54
7.2.30.0070.00116.50
7.2.20.0050.00316.56
7.2.10.0060.00616.47
7.2.00.0100.00416.52
7.1.330.0020.00515.36
7.1.320.0020.00515.29
7.1.310.0020.00515.36
7.1.300.0060.00115.28
7.1.290.0050.00215.44
7.1.280.0050.00215.42
7.1.270.0060.00215.35
7.1.260.0020.00515.34
7.1.250.0020.00515.36
7.1.240.0030.00515.30
7.1.230.0020.00515.34
7.1.220.0040.00415.33
7.1.210.0020.00515.32
7.1.200.0030.00315.43
7.1.190.0070.00015.31
7.1.180.0060.00215.28
7.1.170.0040.00415.33
7.1.160.0050.00315.30
7.1.150.0030.00415.33
7.1.140.0060.00115.27
7.1.130.0070.00315.28
7.1.120.0020.00515.21
7.1.110.0050.00215.26
7.1.100.0000.00615.33
7.1.90.0010.00615.21
7.1.80.0030.00315.41
7.1.70.0020.00515.15
7.1.60.0030.00415.39
7.1.50.0040.00415.32
7.1.40.0020.00515.41
7.1.30.0060.00115.33
7.1.20.0020.00515.17
7.1.10.0030.00315.15
7.1.00.0030.00315.25
7.0.330.0030.00415.03
7.0.320.0040.00315.05
7.0.310.0010.00615.01
7.0.300.0020.00415.04
7.0.290.0040.00314.99
7.0.280.0060.00114.99
7.0.270.0060.00515.08
7.0.260.0020.00614.93
7.0.250.0080.00215.14
7.0.240.0000.00715.23
7.0.230.0030.00315.24
7.0.220.0030.00315.13
7.0.210.0000.00715.26
7.0.200.0040.00315.21
7.0.190.0030.00315.24
7.0.180.0050.00215.17
7.0.170.0000.00715.17
7.0.160.0040.00315.23
7.0.150.0020.00515.07
7.0.140.0030.00315.12
7.0.130.0030.00315.13
7.0.120.0020.00515.13
7.0.110.0000.00715.11
7.0.100.0040.00415.13
7.0.90.0020.00515.10
7.0.80.0020.00514.97
7.0.70.0040.00414.98
7.0.60.0000.00615.03
7.0.50.0090.00415.08
7.0.40.0020.00515.10
7.0.30.0070.00215.05
7.0.20.0040.00415.03
7.0.10.0020.00515.13
7.0.00.0010.00615.01
5.6.400.0030.00315.49
5.6.390.0040.00315.61
5.6.380.0000.00715.49
5.6.370.0050.00215.67
5.6.360.0030.00315.67
5.6.350.0060.00215.55
5.6.340.0030.00515.51
5.6.330.0080.00015.61
5.6.320.0040.00415.57
5.6.310.0030.00415.53
5.6.300.0010.00615.53
5.6.290.0040.00315.63
5.6.280.0070.00015.63
5.6.270.0060.00215.61
5.6.260.0040.00315.54
5.6.250.0020.00715.66
5.6.240.0060.00015.64
5.6.230.0020.00515.64
5.6.220.0030.00315.64
5.6.210.0020.00515.56
5.6.200.0030.00315.68
5.6.190.0020.00515.65
5.6.180.0030.00415.77
5.6.170.0030.00315.84
5.6.160.0020.00515.64
5.6.150.0020.00515.73
5.6.140.0020.00515.64
5.6.130.0030.00315.65
5.6.120.0020.00515.68
5.6.110.0000.00615.59
5.6.100.0030.00315.54
5.6.90.0030.00315.51
5.6.80.0020.00515.78
5.6.70.0020.00515.71
5.6.60.0020.00515.65
5.6.50.0000.00715.53
5.6.40.0050.00215.79
5.6.30.0030.00315.47
5.6.20.0060.00215.54
5.6.10.0010.00615.53
5.6.00.0000.00715.46
5.5.380.0070.00015.67
5.5.370.0030.00315.75
5.5.360.0060.00115.54
5.5.350.0040.00315.53
5.5.340.0040.00315.47
5.5.330.0000.00715.53
5.5.320.0060.00115.46
5.5.310.0020.00515.44
5.5.300.0040.00315.53
5.5.290.0020.00515.43
5.5.280.0020.00415.47
5.5.270.0020.00515.54
5.5.260.0040.00315.49
5.5.250.0040.00415.62
5.5.240.0060.00215.60
5.5.230.0050.00215.59
5.5.220.0020.00415.55
5.5.210.0030.00415.65
5.5.200.0030.00415.45
5.5.190.0070.00015.44
5.5.180.0020.00515.43
5.5.170.0030.00415.46
5.5.160.0040.00315.39
5.5.150.0060.00115.47
5.5.140.0010.00615.20
5.5.130.0040.00315.19
5.5.120.0030.00515.23
5.5.110.0050.00215.39
5.5.100.0020.00515.49
5.5.90.0030.00315.58
5.5.80.0030.00415.52
5.5.70.0060.00015.64
5.5.60.0020.00515.59
5.5.50.0050.00215.69
5.5.40.0000.00615.59
5.5.30.0020.00515.55
5.5.20.0030.00315.64
5.5.10.0020.00515.42
5.5.00.0000.00715.56
5.4.450.0020.00212.41
5.4.440.0030.00112.45
5.4.430.0020.00312.43
5.4.420.0020.00212.51
5.4.410.0030.00312.39
5.4.400.0020.00412.26
5.4.390.0030.00212.41
5.4.380.0040.00112.38
5.4.370.0030.00212.30
5.4.360.0010.00412.45
5.4.350.0030.00212.38
5.4.340.0010.00412.41
5.4.330.0000.00612.36
5.4.320.0000.00512.52
5.4.310.0040.00212.54
5.4.300.0030.00212.53
5.4.290.0040.00112.53
5.4.280.0000.00512.53
5.4.270.0010.00412.64
5.4.260.0010.00312.48
5.4.250.0010.00312.46
5.4.240.0050.00012.48
5.4.230.0030.00312.21
5.4.220.0000.00512.11
5.4.210.0010.00312.24
5.4.200.0010.00412.29
5.4.190.0020.00212.17
5.4.180.0010.00412.23
5.4.170.0010.00412.20
5.4.160.0050.00012.28
5.4.150.0020.00212.17
5.4.140.0030.00212.44
5.4.130.0000.00512.40
5.4.120.0040.00112.34
5.4.110.0050.00012.39
5.4.100.0000.00512.30
5.4.90.0030.00212.32
5.4.80.0000.00512.54
5.4.70.0000.00512.32
5.4.60.0020.00212.36
5.4.50.0000.00512.42
5.4.40.0040.00112.34
5.4.30.0000.00512.43
5.4.20.0010.00412.46
5.4.10.0000.00512.50
5.4.00.0010.00412.33
5.3.290.0020.00413.02
5.3.280.0000.00512.88
5.3.270.0010.00412.82
5.3.260.0020.00212.70
5.3.250.0020.00312.87
5.3.240.0010.00412.85
5.3.230.0010.00412.87
5.3.220.0020.00312.91
5.3.210.0000.00512.76
5.3.200.0040.00112.78
5.3.190.0020.00212.90
5.3.180.0040.00113.05
5.3.170.0010.00413.02
5.3.160.0000.00512.94
5.3.150.0040.00113.12
5.3.140.0000.00613.04
5.3.130.0020.00213.00
5.3.120.0010.00413.10
5.3.110.0000.00512.85
5.3.100.0010.00412.97
5.3.90.0000.00513.00
5.3.80.0030.00312.89
5.3.70.0040.00112.94
5.3.60.0020.00313.00
5.3.50.0000.00512.83
5.3.40.0020.00212.93
5.3.30.0000.00512.90
5.3.20.0030.00212.82
5.3.10.0030.00312.70
5.3.00.0000.00612.62
5.2.170.0010.00411.95
5.2.160.0030.00212.05
5.2.150.0030.00112.13
5.2.140.0000.00511.95
5.2.130.0030.00111.93
5.2.120.0050.00011.88
5.2.110.0030.00311.83
5.2.100.0030.00111.89
5.2.90.0000.00511.90
5.2.80.0030.00311.73
5.2.70.0030.00211.82
5.2.60.0010.00411.72
5.2.50.0000.00511.84
5.2.40.0020.00211.96
5.2.30.0000.00511.74
5.2.20.0020.00211.76
5.2.10.0020.00311.44
5.2.00.0030.00211.56
5.1.60.0040.00110.98
5.1.50.0040.00110.97
5.1.40.0000.00511.21
5.1.30.0030.00111.05
5.1.20.0020.00211.06
5.1.10.0020.00210.97
5.1.00.0030.00110.97
5.0.50.0000.00410.97
5.0.40.0000.00410.97
5.0.30.0020.00210.97
5.0.20.0000.00410.97
5.0.10.0010.00310.97
5.0.00.0000.00410.97
4.4.90.0010.00110.97
4.4.80.0000.00310.97
4.4.70.0010.00110.97
4.4.60.0000.00310.97
4.4.50.0010.00110.97
4.4.40.0000.00210.97
4.4.30.0010.00110.97
4.4.20.0010.00110.97
4.4.10.0010.00110.97
4.4.00.0000.00310.97
4.3.110.0010.00110.97
4.3.100.0010.00110.97
4.3.90.0000.00210.97
4.3.80.0010.00110.97
4.3.70.0000.00210.97
4.3.60.0010.00110.97
4.3.50.0000.00210.97
4.3.40.0000.00310.97
4.3.30.0000.00310.97
4.3.20.0000.00210.97
4.3.10.0010.00110.97
4.3.00.0000.00310.97

preferences:
89.99 ms | 403 KiB | 5 Q