3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from_line_no = 5; $to_line_no = 10; $match[1] = 5; $match[4] = 10; assert('$match[1] - $from_line_no == $match[4] - $to_line_no'); assert($match[1] - $from_line_no == $match[4] - $to_line_no); $match[1] = 8; assert('$match[1] - $from_line_no == $match[4] - $to_line_no'); assert($match[1] - $from_line_no == $match[4] - $to_line_no);

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.0130.00619.57
8.4.10.0030.00620.62
8.3.150.0040.01418.94
8.3.140.0040.00417.32
8.3.130.0060.00318.43
8.3.120.0160.00018.85
8.3.110.0040.00420.94
8.3.100.0070.01324.06
8.3.90.0050.00326.77
8.3.80.0030.00619.36
8.3.70.0040.01118.43
8.3.60.0110.01116.63
8.3.50.0150.00824.49
8.3.40.0140.00719.23
8.3.30.0110.00718.77
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.260.0040.00416.99
8.2.250.0040.01118.64
8.2.240.0090.00018.99
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0070.00026.77
8.2.200.0060.00318.88
8.2.190.0140.00716.58
8.2.180.0130.01025.92
8.2.170.0090.00618.91
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00020.94
8.2.110.0030.00720.47
8.2.100.0060.00617.78
8.2.90.0050.00317.63
8.2.80.0100.00018.91
8.2.70.0070.00019.38
8.2.60.0040.00417.75
8.2.50.0000.00817.63
8.2.40.0080.00019.47
8.2.30.0040.00418.11
8.2.20.0050.00318.00
8.2.10.0040.00421.02
8.2.00.0000.00719.20
8.1.310.0000.00718.45
8.1.300.0070.01117.70
8.1.290.0040.00430.84
8.1.280.0030.01225.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01023.74
8.1.230.0110.00023.80
8.1.220.0030.00517.76
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0050.00318.82
8.1.150.0030.00618.91
8.1.140.0030.00518.95
8.1.130.0040.00417.47
8.1.120.0070.00017.47
8.1.110.0080.00017.48
8.1.100.0040.00417.45
8.1.90.0040.00417.52
8.1.80.0060.00317.46
8.1.70.0050.00317.30
8.1.60.0060.00317.64
8.1.50.0060.00317.54
8.1.40.0000.00817.49
8.1.30.0050.00317.72
8.1.20.0040.00417.57
8.1.10.0040.00417.51
8.1.00.0050.00317.48
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0030.00318.28
8.0.270.0040.00418.03
8.0.260.0000.00816.84
8.0.250.0040.00416.95
8.0.240.0030.00316.87
8.0.230.0000.00717.02
8.0.220.0030.00316.90
8.0.210.0000.00716.92
8.0.200.0030.00316.98
8.0.190.0070.00016.98
8.0.180.0040.00416.84
8.0.170.0060.00316.93
8.0.160.0000.00716.89
8.0.150.0000.00716.85
8.0.140.0030.00316.83
8.0.130.0000.00613.30
8.0.120.0040.00416.71
8.0.110.0050.00216.89
8.0.100.0070.00016.79
8.0.90.0070.00016.80
8.0.80.0080.00916.92
8.0.70.0020.00516.78
8.0.60.0000.00717.04
8.0.50.0080.00017.02
8.0.30.0100.00716.98
8.0.20.0120.00916.87
8.0.10.0040.00417.01
8.0.00.0060.01316.77
7.4.330.0050.00015.55
7.4.320.0000.00616.50
7.4.300.0000.00616.44
7.4.290.0030.00916.48
7.4.280.0040.00416.62
7.4.270.0030.00316.62
7.4.260.0000.00513.30
7.4.250.0040.00416.50
7.4.240.0020.00616.60
7.4.230.0030.00316.59
7.4.220.0000.00716.64
7.4.210.0060.00916.53
7.4.200.0040.00316.46
7.4.130.0110.00616.49
7.4.120.0190.00516.40
7.4.110.0090.00916.42
7.4.100.0070.01116.38
7.4.90.0110.00616.50
7.4.80.0030.01419.39
7.4.70.0070.01116.52
7.4.60.0090.01516.35
7.4.50.0140.00916.17
7.4.40.0150.00916.61
7.4.30.0100.01116.49
7.4.20.0140.00916.38
7.4.10.0130.01016.54
7.4.00.0100.00916.43
7.3.330.0000.00716.34
7.3.320.0030.00313.29
7.3.310.0000.00716.49
7.3.300.0030.00316.39
7.3.290.0040.01016.42
7.3.280.0100.00716.42
7.3.260.0090.00916.48
7.3.240.0110.00716.57
7.3.230.0090.00616.34
7.3.210.0170.00016.54
7.3.200.0080.00816.33
7.3.190.0080.00816.45
7.3.180.0070.01316.29
7.3.170.0180.00516.42
7.3.160.0130.00816.55
7.3.150.0130.00816.32
7.3.140.0120.01016.46
7.3.130.0110.01416.37
7.3.120.0190.00516.41
7.3.110.0120.00816.32
7.3.100.0110.01316.57
7.3.90.0100.01516.33
7.3.80.0110.00916.41
7.3.70.0130.00916.39
7.3.60.0140.00816.19
7.3.50.0200.00516.29
7.3.40.0100.01316.27
7.3.30.0100.01016.22
7.3.20.0210.00416.45
7.3.10.0150.01316.23
7.3.00.0170.00916.39
7.2.330.0110.00616.85
7.2.310.0110.01116.29
7.2.300.0110.01316.75
7.2.290.0100.00916.76
7.2.280.0120.00816.41
7.2.270.0130.01116.61
7.2.260.0080.01416.48
7.2.250.0120.01116.37
7.2.240.0130.01016.36
7.2.230.0100.01116.22
7.2.220.0150.00916.35
7.2.210.0140.01116.39
7.2.200.0100.01216.37
7.2.190.0100.01616.32
7.2.180.0090.01216.39
7.2.170.0150.00816.40
7.2.160.0140.00916.35
7.2.150.0130.01616.34
7.2.140.0260.00716.57
7.2.130.0230.00916.55
7.2.120.0190.01016.43
7.2.110.0210.01316.57
7.2.100.0180.00816.54
7.2.90.0230.00716.55
7.2.80.0180.01116.51
7.2.70.0210.01316.57
7.2.60.0200.01316.46
7.2.50.0220.01416.57
7.2.40.0160.01516.69
7.2.30.0220.01416.64
7.2.20.0250.00516.54
7.2.10.0220.01016.52
7.2.00.0060.01516.45
7.1.330.0220.01015.61
7.1.320.0250.01015.62
7.1.310.0290.00715.76
7.1.300.0220.01115.57
7.1.290.0210.01215.57
7.1.280.0290.00815.62
7.1.270.0230.01015.57
7.1.260.0310.00715.51
7.1.250.0220.01015.57
7.1.240.0230.00615.55
7.1.230.0250.00815.45
7.1.220.0210.00815.55
7.1.210.0150.01515.49
7.1.200.0190.01115.57
7.1.190.0320.01215.62
7.1.180.0210.00815.49
7.1.170.0240.01215.65
7.1.160.0220.00915.68
7.1.150.0230.00715.54
7.1.140.0230.00715.56
7.1.130.0230.01215.55
7.1.120.0180.01315.62
7.1.110.0280.01115.56
7.1.100.0190.01415.56
7.1.90.0180.01115.65
7.1.80.0370.01015.54
7.1.70.0240.00715.59
7.1.60.0220.01115.57
7.1.50.0190.01115.55
7.1.40.0180.01215.66
7.1.30.0200.00815.65
7.1.20.0200.00715.59
7.1.10.0250.00515.49
7.1.00.0160.01415.47
7.0.330.0230.00915.33
7.0.320.0140.01315.22
7.0.310.0140.01315.29
7.0.300.0220.00815.22
7.0.290.0230.00815.28
7.0.280.0170.01115.13
7.0.270.0270.00615.22
7.0.260.0200.01115.28
7.0.250.0330.00915.33
7.0.240.0200.01115.43
7.0.230.0230.00715.36
7.0.220.0170.01115.39
7.0.210.0220.01015.24
7.0.200.0240.00615.35
7.0.190.0180.01015.27
7.0.180.0220.00815.33
7.0.170.0240.01115.26
7.0.160.0210.00715.37
7.0.150.0200.01115.34
7.0.140.0400.00615.25
7.0.130.0220.01215.22
7.0.120.0210.01015.30
7.0.110.0210.01415.17
7.0.100.0270.01115.24
7.0.90.0250.00715.18
7.0.80.0240.00515.24
7.0.70.0210.01015.24
7.0.60.0160.01215.25
7.0.50.0190.00715.29
7.0.40.0200.00915.19
7.0.30.0150.01315.27
7.0.20.0220.00815.19
7.0.10.0180.00915.24
7.0.00.0130.01515.26
5.6.400.0260.00715.82
5.6.390.0170.01315.92
5.6.380.0160.01316.04
5.6.370.0160.01615.94
5.6.360.0200.00815.82
5.6.350.0210.01016.15
5.6.340.0190.01115.94
5.6.330.0240.01015.99
5.6.320.0190.01315.94
5.6.310.0250.00715.93
5.6.300.0240.00915.96
5.6.290.0250.00515.97
5.6.280.0160.01516.09
5.6.270.0190.01415.86
5.6.260.0170.01615.91
5.6.250.0270.00515.97
5.6.240.0200.01016.02
5.6.230.0170.01515.88
5.6.220.0210.00815.94
5.6.210.0200.00915.83
5.6.200.0250.00515.94
5.6.190.0190.01215.75
5.6.180.0210.01115.85
5.6.170.0210.01415.99
5.6.160.0240.01315.95
5.6.150.0280.00515.89
5.6.140.0260.00815.87
5.6.130.0220.00915.73
5.6.120.0210.01115.95
5.6.110.0250.00816.07
5.6.100.0240.00715.95
5.6.90.0220.00615.89
5.6.80.0170.01315.79
5.6.70.0230.00915.94
5.6.60.0190.01215.82
5.6.50.0220.01015.90
5.6.40.0200.01015.81
5.6.30.0180.01115.75
5.6.20.0240.00715.84
5.6.10.0220.01215.83
5.6.00.0250.01215.87
5.5.380.0220.00815.74
5.5.370.0180.01316.10
5.5.360.0260.00715.84
5.5.350.0190.01215.84
5.5.340.0210.00916.02
5.5.330.0220.00915.81
5.5.320.0230.00915.96
5.5.310.0190.01215.87
5.5.300.0170.01315.87
5.5.290.0190.00915.84
5.5.280.0210.01115.91
5.5.270.0240.01115.84
5.5.260.0230.01116.00
5.5.250.0180.01315.77
5.5.240.0200.01115.89
5.5.230.0210.00915.94
5.5.220.0170.01315.75
5.5.210.0210.01115.82
5.5.200.0230.00715.93
5.5.190.0150.01415.74
5.5.180.0230.01015.78
5.5.170.0210.01015.83
5.5.160.0220.01015.61
5.5.150.0190.01415.84
5.5.140.0190.01615.71
5.5.130.0250.01015.90
5.5.120.0180.01415.80
5.5.110.0250.00915.79
5.5.100.0160.01615.79
5.5.90.0210.01015.74
5.5.80.0200.01415.77
5.5.70.0130.01715.90
5.5.60.0210.01615.77
5.5.50.0240.01015.88
5.5.40.0230.00715.61
5.5.30.0210.01015.67
5.5.20.0160.01615.92
5.5.10.0200.01215.74
5.5.00.0260.00815.74
5.4.450.0180.00612.58
5.4.440.0100.01212.79
5.4.430.0180.00912.63
5.4.420.0150.01012.53
5.4.410.0180.00412.65
5.4.400.0160.01112.65
5.4.390.0160.00712.62
5.4.380.0170.00712.53
5.4.370.0100.01312.55
5.4.360.0190.00312.53
5.4.350.0180.00512.67
5.4.340.0210.00612.67
5.4.330.0150.00812.56
5.4.320.0160.01012.51
5.4.310.0180.01012.48
5.4.300.0190.00812.52
5.4.290.0150.00912.56
5.4.280.0110.00912.65
5.4.270.0190.00612.54
5.4.260.0160.00512.42
5.4.250.0110.01312.47
5.4.240.0220.00612.52
5.4.230.0190.00912.56
5.4.220.0140.01212.55
5.4.210.0160.01112.48
5.4.200.0220.00612.69
5.4.190.0180.00512.62
5.4.180.0180.01312.57
5.4.170.0180.00912.50
5.4.160.0140.00912.56
5.4.150.0170.00812.51
5.4.140.0140.00912.58
5.4.130.0210.00512.58
5.4.120.0150.01112.72
5.4.110.0130.01012.64
5.4.100.0210.00612.78
5.4.90.0190.00612.67
5.4.80.0160.00812.53
5.4.70.0160.01012.62
5.4.60.0210.00412.76
5.4.50.0190.00612.71
5.4.40.0150.00912.69
5.4.30.0130.01112.66
5.4.20.0170.00712.56
5.4.10.0150.01012.63
5.4.00.0150.00812.49
5.3.290.0130.01213.17
5.3.280.0110.01212.86
5.3.270.0130.01112.98
5.3.260.0160.01313.03
5.3.250.0170.01113.07
5.3.240.0110.01612.91
5.3.230.0150.01512.96
5.3.220.0190.00913.02
5.3.210.0170.01113.04
5.3.200.0100.01213.12
5.3.190.0140.01013.23
5.3.180.0170.00813.22
5.3.170.0140.01313.29
5.3.160.0170.00613.30
5.3.150.0170.00613.36
5.3.140.0150.01113.14
5.3.130.0140.01313.20
5.3.120.0160.01013.22
5.3.110.0210.00613.15
5.3.100.0160.01113.11
5.3.90.0160.00813.04
5.3.80.0130.01013.00
5.3.70.0170.00612.90
5.3.60.0160.00913.06
5.3.50.0180.00812.95
5.3.40.0120.01413.02
5.3.30.0150.00913.06
5.3.20.0080.01712.89
5.3.10.0190.00712.78
5.3.00.0140.01312.89
5.2.170.0190.00312.00
5.2.160.0110.00912.01
5.2.150.0150.00812.09
5.2.140.0140.00812.10
5.2.130.0090.01111.98
5.2.120.0120.00812.02
5.2.110.0140.01011.97
5.2.100.0140.00712.00
5.2.90.0120.00911.99
5.2.80.0110.00011.91
5.2.70.0130.00511.99
5.2.60.0050.01311.90
5.2.50.0130.00411.98
5.2.40.0120.01211.94
5.2.30.0160.00712.04
5.2.20.0130.00711.79
5.2.10.0140.00911.67
5.2.00.0180.00411.75
5.1.60.0110.00911.07
5.1.50.0100.00811.11
5.1.40.0180.00311.12
5.1.30.0100.01011.32
5.1.20.0080.01111.13
5.1.10.0120.00611.13
5.1.00.0130.00610.92
5.0.50.0100.00810.92
5.0.40.0110.00410.92
5.0.30.0080.00610.92
5.0.20.0090.00810.92
5.0.10.0110.00410.92
5.0.00.0100.00710.92
4.4.90.0060.00610.92
4.4.80.0030.00210.92
4.4.70.0070.00510.92
4.4.60.0050.00410.92
4.4.50.0070.00310.92
4.4.40.0060.00610.92
4.4.30.0080.00310.92
4.4.20.0110.00210.92
4.4.10.0030.00710.92
4.4.00.0050.00310.92
4.3.110.0060.00310.92
4.3.100.0040.00510.92
4.3.90.0080.00410.92
4.3.80.0060.00610.92
4.3.70.0110.00010.92
4.3.60.0090.00310.92
4.3.50.0090.00310.92
4.3.40.0060.00510.92
4.3.30.0060.00410.92
4.3.20.0020.00710.92
4.3.10.0080.00210.92
4.3.00.0050.00510.92

preferences:
80.87 ms | 403 KiB | 5 Q