3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(bool $bar = null) { } foo(true); foo(null);

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.0060.01319.14
8.4.10.0040.01219.52
8.3.150.0110.01117.05
8.3.140.0040.00420.77
8.3.130.0050.00316.46
8.3.120.0130.00620.62
8.3.110.0050.00320.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0090.00318.30
8.3.70.0070.00716.58
8.3.60.0110.01116.35
8.3.50.0100.00817.42
8.3.40.0120.00918.67
8.3.30.0090.00618.42
8.3.20.0050.00221.78
8.3.10.0080.00021.61
8.3.00.0080.00019.31
8.2.270.0150.00416.48
8.2.260.0000.00818.75
8.2.250.0060.00918.19
8.2.240.0090.00917.09
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0090.00026.77
8.2.200.0040.00416.25
8.2.190.0120.00616.58
8.2.180.0090.00918.41
8.2.170.0130.00318.79
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.82
8.2.110.0000.01120.36
8.2.100.0000.01117.64
8.2.90.0060.00617.25
8.2.80.0060.00317.97
8.2.70.0080.00017.90
8.2.60.0060.00318.03
8.2.50.0040.00818.10
8.2.40.0040.00419.35
8.2.30.0000.00719.18
8.2.20.0030.00617.84
8.2.10.0070.00017.90
8.2.00.0000.00817.88
8.1.310.0090.00916.29
8.1.300.0060.01017.68
8.1.290.0060.00318.88
8.1.280.0120.00325.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0120.00319.04
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0100.00017.10
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0050.00317.62
8.1.160.0040.00418.79
8.1.150.0000.00718.85
8.1.140.0070.00017.52
8.1.130.0050.00217.31
8.1.120.0030.00317.31
8.1.110.0070.00317.21
8.1.100.0100.00017.32
8.1.90.0050.00217.25
8.1.80.0000.00717.22
8.1.70.0030.00317.35
8.1.60.0040.00417.55
8.1.50.0000.00817.47
8.1.40.0050.00317.35
8.1.30.0030.00617.54
8.1.20.0080.00017.61
8.1.10.0040.00417.21
8.1.00.0000.00817.20
8.0.300.0000.00721.48
8.0.290.0080.00016.63
8.0.280.0000.00718.27
8.0.270.0040.00416.59
8.0.260.0030.00316.59
8.0.250.0030.00316.85
8.0.240.0040.00416.83
8.0.230.0090.00016.84
8.0.220.0040.00416.64
8.0.210.0000.00716.63
8.0.200.0050.00216.82
8.0.190.0070.00016.84
8.0.180.0040.00416.75
8.0.170.0040.00416.78
8.0.160.0050.00316.77
8.0.150.0070.00016.66
8.0.140.0040.00416.73
8.0.130.0040.00413.18
8.0.120.0030.00516.77
8.0.110.0040.00416.75
8.0.100.0030.00516.82
8.0.90.0000.00816.74
8.0.80.0060.00816.71
8.0.70.0000.00716.63
8.0.60.0000.00816.56
8.0.50.0040.00416.62
8.0.30.0130.00916.90
8.0.20.0150.01016.88
8.0.10.0100.01016.85
8.0.00.0110.00916.78
7.4.330.0000.00515.55
7.4.320.0030.00316.29
7.4.300.0040.00716.39
7.4.290.0000.00716.27
7.4.280.0000.00716.38
7.4.270.0000.00716.51
7.4.260.0050.00216.56
7.4.250.0000.00716.40
7.4.240.0000.00716.54
7.4.230.0070.00016.41
7.4.220.0030.00516.29
7.4.210.0080.00816.46
7.4.200.0030.00316.57
7.4.160.0170.00816.45
7.4.150.0170.00716.36
7.4.140.0120.00716.99
7.4.130.0110.00916.23
7.4.120.0120.00916.31
7.4.110.0080.01216.21
7.4.100.0130.00916.27
7.4.90.0100.01116.24
7.4.80.0120.00916.63
7.4.70.0080.01216.25
7.4.60.0110.00816.29
7.4.50.0100.00916.29
7.4.40.0110.00816.27
7.4.30.0130.00516.28
7.4.20.0120.00716.24
7.4.10.0090.01016.05
7.4.00.0100.00916.07
7.3.330.0000.00613.26
7.3.320.0000.00613.27
7.3.310.0030.00316.28
7.3.300.0000.00716.31
7.3.290.0000.00816.29
7.3.280.0100.00716.23
7.3.270.0130.00916.19
7.3.260.0100.01016.36
7.3.250.0100.01016.20
7.3.240.0180.00916.24
7.3.230.0100.01216.16
7.3.220.0130.00716.10
7.3.210.0100.01116.19
7.3.200.0110.00916.16
7.3.190.0090.01116.18
7.3.180.0120.00716.12
7.3.170.0110.00716.13
7.3.160.0120.00716.20
7.3.150.0080.01016.10
7.3.140.0120.00716.09
7.3.130.0110.00816.02
7.3.120.0110.00816.02
7.3.110.0120.00715.82
7.3.100.0090.01015.73
7.3.90.0100.00915.75
7.3.80.0100.00915.58
7.3.70.0100.00915.48
7.3.60.0090.00815.38
7.3.50.0110.00615.36
7.3.40.0100.00815.34
7.3.30.0100.00815.32
7.3.20.0170.00615.67
7.3.10.0160.00815.64
7.3.00.0140.00715.62
7.2.340.0190.00916.13
7.2.330.0190.00916.19
7.2.320.0140.00916.22
7.2.310.0150.01016.26
7.2.300.0170.00816.28
7.2.290.0150.00816.16
7.2.280.0150.00916.28
7.2.270.0160.00916.22
7.2.260.0130.00916.07
7.2.250.0160.01016.10
7.2.240.0130.00915.85
7.2.230.0130.00915.81
7.2.220.0110.01015.79
7.2.210.0120.00915.61
7.2.200.0130.00915.57
7.2.190.0100.01215.48
7.2.180.0110.01015.42
7.2.170.0110.00915.36
7.2.160.0120.00915.39
7.2.150.0300.01015.77
7.2.140.0140.00815.78
7.2.130.0270.00815.76
7.2.120.0160.00915.75
7.2.110.0170.00815.71
7.2.100.0230.00815.75
7.2.90.0340.00815.74
7.2.80.0210.00915.76
7.2.70.0330.00615.71
7.2.60.0280.00915.80
7.2.50.0280.00715.77
7.2.40.0330.01015.95
7.2.30.0240.00915.83
7.2.20.0230.00915.85
7.2.10.0260.00915.84
7.2.00.0250.00715.86
7.1.330.0170.00815.06
7.1.320.0140.00715.08
7.1.310.0150.00915.01
7.1.300.0160.00814.69
7.1.290.0180.00814.75
7.1.280.0150.00814.77
7.1.270.0130.00714.83
7.1.260.0150.00814.74
7.1.250.0610.00814.65
7.1.240.0200.00914.66
7.1.230.0210.00914.66
7.1.220.0200.00714.64
7.1.210.0190.00814.64
7.1.200.0340.00814.72
7.1.190.0180.00614.66
7.1.180.0280.00914.64
7.1.170.0240.00914.60
7.1.160.0290.00814.72
7.1.150.0290.00814.73
7.1.140.0250.00914.71
7.1.130.0280.00714.72
7.1.120.0250.00714.72
7.1.110.0240.00914.72
7.1.100.0210.00914.72
7.1.90.0220.00814.67
7.1.80.0230.00914.73
7.1.70.0210.00914.65
7.1.60.0300.00815.31
7.1.50.0240.00815.37
7.1.40.0220.00915.37
7.1.30.0190.00815.36
7.1.20.0220.00815.35
7.1.10.0230.00714.60
7.1.00.0180.00814.63
7.0.330.0190.00814.30
7.0.320.0250.00714.54
7.0.310.0210.00914.50
7.0.300.0260.01014.55
7.0.290.0320.00914.59
7.0.280.0240.00714.55
7.0.270.0270.00914.67
7.0.260.0310.00814.65
7.0.250.0260.00914.64
7.0.240.0170.00814.66
7.0.230.0240.00914.66
7.0.220.0230.00814.65
7.0.210.0170.00714.59
7.0.200.0230.00814.57
7.0.190.0230.00714.55
7.0.180.0260.00814.59
7.0.170.0220.00914.59
7.0.160.0230.00914.52
7.0.150.0220.00914.56
7.0.140.0210.01014.54
7.0.130.0210.01014.56
7.0.120.0190.00814.61
7.0.110.0210.00914.59
7.0.100.0250.00714.49
7.0.90.0390.00814.53
7.0.80.0200.00714.58
7.0.70.0210.00914.58
7.0.60.0200.00914.57
7.0.50.0200.00814.64
7.0.40.0200.00914.62
7.0.30.0230.00714.63
7.0.20.0180.00714.61
7.0.10.0240.00914.58
7.0.00.0210.00814.59
5.6.400.0130.00914.79
5.6.390.0130.00914.82
5.6.380.0130.01114.72
5.6.370.0140.01114.87
5.6.360.0160.00814.86
5.6.350.0140.00814.93
5.6.340.0140.00914.91
5.6.330.0140.01114.89
5.6.320.0160.00814.89
5.6.310.0140.00914.84
5.6.300.0140.01315.15
5.6.290.0150.01215.16
5.6.280.0150.01215.18
5.6.270.0140.01315.19
5.6.260.0140.01315.20
5.6.250.0140.01215.24
5.6.240.0120.01415.25
5.6.230.0170.01115.22
5.6.220.0150.01315.19
5.6.210.0150.01215.15
5.6.200.0120.01415.27
5.6.190.0150.01415.25
5.6.180.0150.01215.19
5.6.170.0140.01315.18
5.6.160.0140.01215.19
5.6.150.0160.01215.24
5.6.140.0150.01215.17
5.6.130.0150.01215.23
5.6.120.0150.01215.20
5.6.110.0140.01315.15
5.6.100.0160.01215.12
5.6.90.0130.01315.15
5.6.80.0140.01215.09
5.6.70.0150.01115.13
5.6.60.0140.01215.12
5.6.50.0140.01115.11
5.6.40.0140.01315.12
5.6.30.0110.01415.08
5.6.20.0140.01415.07
5.6.10.0130.01115.08
5.6.00.0140.01215.09
5.5.380.0170.00615.66
5.5.370.0160.01115.70
5.5.360.0200.00815.51
5.5.350.0220.00015.66
5.5.340.0340.00815.48
5.5.330.0220.00315.47
5.5.320.0140.00815.61
5.5.310.0230.00015.52
5.5.300.0190.00815.46
5.5.290.0140.00915.46
5.5.280.0210.00515.46
5.5.270.0100.01315.64
5.5.260.0080.01715.52
5.5.250.0200.00315.57
5.5.240.0110.01415.80
5.5.230.0110.01515.69
5.5.220.0160.01215.55
5.5.210.0130.01015.66
5.5.200.0170.00615.51
5.5.190.0150.00615.39
5.5.180.0130.00815.46
5.5.170.0150.01115.45
5.5.160.0130.01015.45
5.5.150.0200.00315.37
5.5.140.0140.00915.34
5.5.130.0180.00915.28
5.5.120.0170.01015.34
5.5.110.0140.00715.27
5.5.100.0130.00815.52
5.5.90.0110.01115.51
5.5.80.0200.00415.55
5.5.70.0200.00415.79
5.5.60.0130.01015.57
5.5.50.0120.01215.57
5.5.40.0100.01415.67
5.5.30.0110.01115.57
5.5.20.0240.00315.66
5.5.10.0150.00915.54
5.5.00.0090.01315.54
5.4.450.0100.00712.53
5.4.440.0230.00012.52
5.4.430.0180.00012.43
5.4.420.0120.00512.47
5.4.410.0140.00512.36
5.4.400.0140.00612.48
5.4.390.0160.00612.37
5.4.380.0120.00612.43
5.4.370.0100.00712.46
5.4.360.0160.00312.47
5.4.350.0120.00612.48
5.4.340.0100.00712.38
5.4.330.0170.00312.39
5.4.320.0090.00912.52
5.4.310.0090.00912.53
5.4.300.0200.00312.43
5.4.290.0170.00012.45
5.4.280.0100.00712.54
5.4.270.0090.00812.54
5.4.260.0090.00912.49
5.4.250.0130.00912.45
5.4.240.0100.00712.45
5.4.230.0170.00412.25
5.4.220.0060.01012.38
5.4.210.0150.00312.27
5.4.200.0130.00712.28
5.4.190.0150.00312.20
5.4.180.0120.00612.29
5.4.170.0140.00312.26
5.4.160.0080.01312.18
5.4.150.0110.00712.25
5.4.140.0110.00612.40
5.4.130.0110.00812.43
5.4.120.0140.00412.41
5.4.110.0070.01012.38
5.4.100.0100.01012.44
5.4.90.0080.00812.41
5.4.80.0140.00712.42
5.4.70.0140.00512.47
5.4.60.0130.00612.52
5.4.50.0120.00912.55
5.4.40.0210.00012.36
5.4.30.0120.00912.41
5.4.20.0120.00912.46
5.4.10.0160.00312.48
5.4.00.0100.00612.35
5.3.290.0120.00813.05
5.3.280.0140.00912.78
5.3.270.0120.00612.83
5.3.260.0110.00613.11
5.3.250.0040.01412.97
5.3.240.0150.00312.85
5.3.230.0180.00412.76
5.3.220.0120.00612.78
5.3.210.0120.01213.01
5.3.200.0090.01412.95
5.3.190.0130.01012.82
5.3.180.0220.01113.14
5.3.170.0190.00012.95
5.3.160.0140.00713.01
5.3.150.0080.01512.95
5.3.140.0120.01212.91
5.3.130.0100.01312.92
5.3.120.0120.00912.88
5.3.110.0170.00312.88
5.3.100.0130.00312.96
5.3.90.0110.00512.98
5.3.80.0100.00712.85
5.3.70.0040.01412.85
5.3.60.0070.01012.89
5.3.50.0090.00812.77
5.3.40.0190.00412.87
5.3.30.0140.00412.80
5.3.20.0160.00012.89
5.3.10.0090.01312.62
5.3.00.0100.00712.60
5.2.170.0110.00411.91
5.2.160.0090.00612.04
5.2.150.0080.00812.03
5.2.140.0040.01111.89
5.2.130.0060.00911.84
5.2.120.0050.01011.90
5.2.110.0030.01111.84
5.2.100.0040.01612.01
5.2.90.0100.01011.98
5.2.80.0130.00311.75
5.2.70.0100.00511.84
5.2.60.0110.00611.71
5.2.50.0100.00711.88
5.2.40.0100.00511.89
5.2.30.0130.00311.89
5.2.20.0080.00811.75
5.2.10.0040.01311.52
5.2.00.0070.01011.54
5.1.60.0100.00711.23
5.1.50.0100.00311.23
5.1.40.0110.00311.23
5.1.30.0150.00311.23
5.1.20.0110.00311.23
5.1.10.0080.00811.23
5.1.00.0060.00611.23
5.0.50.0080.00711.23
5.0.40.0120.00311.23
5.0.30.0050.00511.23
5.0.20.0050.00611.23
5.0.10.0090.00311.23
5.0.00.0100.00311.23
4.4.90.0040.00211.23
4.4.80.0090.00011.23
4.4.70.0060.00311.23
4.4.60.0000.01011.23
4.4.50.0080.00011.23
4.4.40.0060.00311.23
4.4.30.0080.00011.23
4.4.20.0060.00311.23
4.4.10.0070.00011.23
4.4.00.0150.00811.23
4.3.110.0030.00411.23
4.3.100.0060.00011.23
4.3.90.0070.00011.23
4.3.80.0050.00211.23
4.3.70.0070.00011.23
4.3.60.0040.00411.23
4.3.50.0050.00311.23
4.3.40.0040.00411.23
4.3.30.0060.00011.23
4.3.20.0060.00011.23
4.3.10.0040.00411.23
4.3.00.0000.00611.23

preferences:
35.55 ms | 403 KiB | 5 Q